dinger2121
Programmer
I'm trying to use the following snippet to write some data to a text file.
String nameOfTextFile = "try {
java.io.FileWriter fw = new java.io.FileWriter(nameOfTextFile);
fw.write(str);
fw.close();
but I keep getting a "no such file or directory" error.
Does anyone have any idea why?
Thanks for any thoughts.
String nameOfTextFile = "try {
java.io.FileWriter fw = new java.io.FileWriter(nameOfTextFile);
fw.write(str);
fw.close();
but I keep getting a "no such file or directory" error.
Does anyone have any idea why?
Thanks for any thoughts.