aspose 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 41577
    
  54
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can I store user input from GUI into a text file?