Will Green

Will Green

  • NA
  • 5
  • 0

Text file read line by line then convert to multiple strings

Aug 30 2009 2:10 PM
What i'm doing is saving things to a .txt file, each piece of information per line. (i.e. first name is on the first line, last name on the second line, email on the third line and so on) It then saves to a .txt file. What I want to do is read the .txt file and create a string for each line. So the first line would be one string and that string would have their first name in it. The second string would have their last name, the third string would have their email and so on. I also want to know if there is a better way for me to save data. Thanks.

Answers (4)