This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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
Rancher

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

Let's continue the discussion in this duplicate thread.
 
wood burning stoves
 
subject: How can I store user input from GUI into a text file?
 
It's not a secret anymore!