Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons 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
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
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?
 
Similar Threads
Please help!
Getting the URL by crawling whose content-type is not text/html
How can I store user input from GUI into a text file?
Need some help with output to file
sockets and printwriting