![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Location: Ky
Posts: 3
Rep Power: 0
![]() |
Saving with Java
How do you save input, so that the next time you start a program it will be able to use it without having to get it all over again. Any basic idea would help me. Thanks
Marcus
__________________
[color=DarkSlateGray] Marcus |
|
|
|
|
|
#2 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Write it to a file. BufferedWriter/FileWriter is what you're looking for, I believe.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Apr 2004
Location: Texas
Posts: 106
Rep Power: 5
![]() |
look into Properties ... http://java.sun.com/docs/books/tutor...roperties.html ... it should save a file with key=value pairs that you can open when the program starts up and load in values from the last execution ...
hope that helps. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|