Hey guys,
How can one store and retrive values from a textfile using J2ME.
textfile will have content something like this
I need to read the values in the following format.
For writing into the file I need the following format
is there a better way of doing it, does J2ME provide application configuration class or something like that?
This is for one of my friend.
EDIT: Or can I use XML to store data? Does J2ME support native XML reading and writing.
@Chandru.in im counting on you
How can one store and retrive values from a textfile using J2ME.
textfile will have content something like this
Code:
#--Configuration File--
Value1=Hello
Value2=World
I need to read the values in the following format.
Code:
string V1;
string V2;
V1=GetConfiguration(Value1);
V2=GetConfiguration(Value2);
For writing into the file I need the following format
Code:
SetConfiguration(Value1,"test1");
SetConfiguration(Value2,"test2");
is there a better way of doing it, does J2ME provide application configuration class or something like that?
This is for one of my friend.
EDIT: Or can I use XML to store data? Does J2ME support native XML reading and writing.
@Chandru.in im counting on you
Last edited: