• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read and Modify the contents of a textfile stored along with a midlet

 
Krishna Chaitanya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm developing a mobile application wherein I first need to access the contents of the configuration file and then through need to erase the previous content of the configuration file with the new data entered thru the front end application (midlet). I was able to read the content of the existing file.. now i need to erase the already existing content with the new one. Kinldy please suggest me how do i fix the said problem.

A sample code of how i'm reading the existing file is stated below

InputStream in = this.getClass().getResourceAsStream("/Settings.cfg");

Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post duplicate posts. You already have three thread asking this same question.

I am going to delete all the other duplicate threads.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic