Can anyone tell me how to open an existing file to use with a FileOutputStream?
I have the code below and can send output via pw...
String logPath = File.separator + "d:/retrieved07" + File.separator;
FileOutputStream f= new FileOutputStream(logPath + "logfile.dat");
PrintWriter pw = new PrintWriter(f);
What I want to do is be able to add to "logfile.dat" without it being re-created when I run the program.
Many thanks to anyone who can help me.
I have the code below and can send output via pw...
String logPath = File.separator + "d:/retrieved07" + File.separator;
FileOutputStream f= new FileOutputStream(logPath + "logfile.dat");
PrintWriter pw = new PrintWriter(f);
What I want to do is be able to add to "logfile.dat" without it being re-created when I run the program.
Many thanks to anyone who can help me.