i'm unable to update my data.. i'm not sure what have gone wrong.. Whenever i try to update, it would overwrite the first position of the data in the Textfile.. and then it's unable to display it.. (No matter which date i try to update, it's would definitely overwrite the first data)
Originally posted by Freya Tan:
Sorry.. i dun quite understand.. can u show me an example..?
Thanks
FileOutputStream out = new FileOutputStream(outputFile); PrintStream fileOutput = new PrintStream(out);
for (int x = 0; x < AppList.size(); x++) {
aObjt = (FindDay)AppList.get(x);
fileOutput.println(aObjt.getDate() + ";" + aObjt.getMonth() + ";" + aObjt.getYear() + ";" + aObjt.getTime() + ";" + aObjt.getAm() + ";" + aObjt.getApp());
}