Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2002
Added on Jan 30 2002
2 comments
228 views