bobrivers2003
Technical User
I wish to save a file if i put c:\\file.txt, the file is saved in the c: drive, however if i put c:\\dir\\file.txt it doesnt work. What am I doing wrong? (I am working on Windows 2000)
try {
out = new BufferedWriter(new FileWriter("c:\\file.txt, true));
out.write(new Date() + " : " + lm + '\n');
out.close();
} catch (Exception e) {
if (out != null) {
try {
out.close();
} catch (Exception er) {
}
}
}
try {
out = new BufferedWriter(new FileWriter("c:\\file.txt, true));
out.write(new Date() + " : " + lm + '\n');
out.close();
} catch (Exception e) {
if (out != null) {
try {
out.close();
} catch (Exception er) {
}
}
}