my program has the following code,
BufferedWriter bufWriter = new BufferedWriter(new FileWriter(new File("xyz.dat"),true));
bufWriter.write(nameField+"/"+ageField+"/"+genderField+"\n");
bufWriter.flush();
Which creates a file.. Sample Format of data stored in file..
Name1/Age1/Gender1 // for user1
Name2/Age2/Gender2 // for user2
.
.
.
NameN/AgeN/GenderN //for userN
Suppose I need to change the age of the user5 then how can i do it? I can navigate to the 5th user and I can get the data through the split("/",3);
method but how to make changes for that particular user ? I am really very confused here.