I have an array of items that I need to save to a file. How do you do this?
Saving an array
Collapse
This topic is closed.
X
X
-
deanfamilyTags: None -
Oliver Wong
Re: Saving an array
"deanfamily " <deanfamily@ver izon.net> wrote in message
news:Vspif.4846 $AB2.544@trnddc 08...[color=blue]
>I have an array of items that I need to save to a file. How do you do
>this?[/color]
Iterate through the array and save each item.
- Oliver
-
Hal Rosser
Re: Saving an array
"deanfamily " <deanfamily@ver izon.net> wrote in message
news:Vspif.4846 $AB2.544@trnddc 08...[color=blue]
> I have an array of items that I need to save to a file. How do you do[/color]
this?
Iterate through the array and either write each item to a line in a file -
OR - build a delimited String from the array and write the string to a file.
Aftr you do that - your next question would be how to open and read a file.
Comment
-
Remon van Vliet
Re: Saving an array
"deanfamily " <deanfamily@ver izon.net> schreef in bericht
news:Vspif.4846 $AB2.544@trnddc 08...[color=blue]
>I have an array of items that I need to save to a file. How do you do
>this?
>[/color]
Depends on the type of items, the short and easy answer to your question is
: buy a beginner level Java book or find tutorials online. If you're more
specific regarding the items that need saving people can probably help you
out
Comment
Comment