Hi,
I have a Java Servlet that writes results from a form to a text file.
FileWriter fw = new FileWriter("results", true);
PrintWriter pw = new PrintWriter(fw,true);
pw.print("data"
I ran the servlet on my home computer (using the web server provided by the jsdk) and it saved the file in c:\jsdwk\results.txt
I tried it on my website and I couldnot find the results.txt file. I tried to save it into one of my subdirectory but that didnot work either. I did a System.getProperty("user.dir" and I got "" back.
Do I have to do something special?
THanks!
I have a Java Servlet that writes results from a form to a text file.
FileWriter fw = new FileWriter("results", true);
PrintWriter pw = new PrintWriter(fw,true);
pw.print("data"
I ran the servlet on my home computer (using the web server provided by the jsdk) and it saved the file in c:\jsdwk\results.txt
I tried it on my website and I couldnot find the results.txt file. I tried to save it into one of my subdirectory but that didnot work either. I did a System.getProperty("user.dir" and I got "" back.
Do I have to do something special?
THanks!