Saving an array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • deanfamily

    #1

    Saving an array

    I have an array of items that I need to save to a file. How do you do this?


  • Oliver Wong

    #2
    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


    Comment

    • Hal Rosser

      #3
      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

        #4
        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

        Working...