HI
all of you
Can MIDP2.0 supports any TextFile? If it supports . Please Let me Know.
Thanks
Ojak Dev
HI
all of you
Can MIDP2.0 supports any TextFile? If it supports . Please Let me Know.
Thanks
Ojak Dev
What exactly do you mean support a text file. What are you going to use a text file for? You can use a text file for input (as long as it is stored within the Jar file of your application. If you are talking about writing to a text file then I don't believe that it is supported, you will have to use a RecordStore.
Thanks again for your suggesstion but i want to know one thing more that Is it possible to read from the text file .
Using the Class.getResourceAsStream() method you get an InputStream object. With it you can read the file in a few ways (wrappint the stream in a DataInputStream and using it's methods, reading into a byte array and passing it to a String constructor, reading byte by byte and appending to a StringBuffer, etc.).
shmooove