Thread: Array storage
View Single Post
  #4 (permalink)  
Old 04-13-2008, 08:14 AM
bobleny's Avatar
bobleny bobleny is offline
Member
 
Join Date: Apr 2008
Posts: 36
bobleny is on a distinguished road
I'm new to Java, so I don't know how to do this, but in PHP, I would copy the array contents to a file.

For example, if I have an array like this:
array[0] = "Joe"
array[1] = "Bill"
array[2] = "Jessica"
array[3] = "Amanda"
array[4] = "Tina"

---
Then the text file would look like this:
Joe
Bill
Jessica
Amanda
Tina

---
Then, I simply need to create an array of each line and I'm back to the original array. As of right now, I don't know how to write or read a file....
Reply With Quote