Read and Modify the contents of a textfile stored along with a midlet
posted 11 years ago
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");