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" <fahdshariff@yahoo.com> wrote in message
news:9bc0209f.0405120114.1e0ebe5c@posting.google.c om...[color=blue]
> 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..."[/color]