aspose file tools*
The moose likes I/O and Streams and the fly likes return a text file from webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "return a text file from webapp" Watch "return a text file from webapp" New topic
Author

return a text file from webapp

Natalia Lopez
Ranch Hand

Joined: Feb 17, 2005
Posts: 41
Hi again
I can't find solution to my problem. I need to save in the user local disk a txt file with some text inside, when the user press a button on a webapplication page.
Anybody can say me how to do this or where to find code examples.
Regards

Naty
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

What is the problem with what we talked about in your previous post?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Natalia Lopez
Ranch Hand

Joined: Feb 17, 2005
Posts: 41
I can't find the way to create and return the txt file (to save to disk) to the user that press a button on the web application.
I need to do two things when user press ok, show a result on screen and give the oprtunity to save that results on a txt file into the disk

Naty
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
To write to the disk, just use FileWriter or BufferedWriter.
To read from disk, just use FileReader or BufferedReader.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: return a text file from webapp