Hi there I'm writing to a file so that it creates a back log of the data and time i did something. I've got the program so it writes the data that is needed and also the date and time.
the problem is if you use the program more then once then the time does not update. if you close the program and write to the document again the time is correct but only correct the first time its used.
try
{
BufferedWriter out = new BufferedWriter(new FileWriter("BackLog.txt",true));
out.newLine();
out.write("" + calander.getTime());
out.newLine();
out.write(main.Link("opening") + URLtxt.getText());
out.newLine();
out.close();
}
catch (IOException e)
{
}
this is the code I'm using is there any reason why the calander is not updating??
Any help is appreciated thanks.