Read or write a text file from Java server page?
843835Jan 30 2002 — edited Jan 31 2002 I need create a text file if the file is not exist, if exist, I have to append a string or stringbuffer to the file. Basically I am using java server page for our web application. I need send user input into a text file. I am uploading my JSP into a server, and run JSP from server. I wonder if I want to create a file, where this file goes, and how can I specify the path of the file?
I used: BufferedReader br = new BufferedReader( new FileReader("report.txt"));
The file report.txt could not be found.
Please help me, thank you so much