I have planned to develop a JME midlet. I want to include a text file in the Java ARchive. Each line in the text file will contain comma-separated strings. The last string in a line will be a flag.
I want my midlet to read the text file.
I have looked at the MIDP 2.0 javadoc.
The Class.getResourceAsStream(String name)
method returns an InputStream objet.
I can use this method to read my text file.
I want my midlet to change the flag of lines in my text file. Is it possible to write in the text file included in my JAR? If so then what classes and methods I have to use?