Thanks for that, but i'm hoping you can help me with my syntax. It
currently makes a new text file/replaces but i'm unsure how to append an
already exsisting one.
This is what i have:
try
{
String outName = "out.txt";
FileWriter out = new FileWriter(outName);
writer.write(total);
writer.newLine();
writer.close();
}
Thanks,
Dave
"Fahd Shariff" <fa*********@yahoo.com> wrote in message
news:9b**************************@posting.google.c om...
See
FileWriter
public FileWriter(String fileName,
boolean append)
throws IOException
Constructs a FileWriter object given a file name with a boolean
indicating whether or not to append the data written.
Sample code:
BufferedWriter writer = new BufferedWriter(
new FileWriter("myfile.txt",true)) ;
writer.write("HELLO") ;
writer.close() ;
Fahd Shariff
http://www.fahdshariff.cjb.net
"Let the code do the talking..."