This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
then i have a button named SAVE
and a txt were i have many names followed by last name and id, a list you may say
The thing is that wen i press SAVE i want to send the info from the 3 text fiels into the txt file
in order.
Would you ranchers give me some directions on how i can acomplish this?
THANK YOU IN ADVANCE!
I know is only java
BUT I LIKE IT!!!
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
in the button's actionPerformed() create a String (line):
(the text from) tf1 + delimeter + (the text from) tf2 + delimeter + (the text from) tf3 + "\n"
where delimeter is a keyboard character unlikely to appear in any of the tf's e.g. ~ or |
(the delimeter is used to split the line when reading it back)
use a FileWriter (using the constructor that contains a boolean), and 'write' the line