File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How can I store user input from GUI into a text file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

How can I store user input from GUI into a text file?

drew taylor
Greenhorn

Joined: Feb 20, 2006
Posts: 21
Hi, I have spent ages trying to get this to work. I'm trying to store the value of a textBox into a textFile when the button is clicked.

Instead of out.println("This is line 1"); would I use something like:

out.println(textBox.text) ??

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42912
    
  68
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I store user input from GUI into a text file?