Java Programming - reading data out to a txt file
Hi,
I have a really nice 'scanner' method for reading int data in from a .txt file (many thanks to doremifasollatido for all their help - I promise not to do multiple posts again!). So, I have my data in a list, and after making some changes, I want to write that data back to the txt file for storage, what is the best method to use to do this?
Many thanks, Ron
[383 byte] By [
cakea] at [2007-11-26 23:26:02]

You 'write' data to a file.
You use one of the output classes in java.io.
Normally you want to write data is a fixed manner however. For instance each of your items in the list is written a line. If so then you must interate through the list and write each individual item with what ever additional information you determine necessary.
Thanks, i found it in the io docs, I realised that i had to concatenate everthing together, but it works fine :)Again, thanks ron
cakea at 2007-7-10 14:33:46 >
