Data to Parallel Arrays

Hello everyone, first time poster, hoping someone can help me out. I am trying to read in data from a text file and store it into two parallel string arrays.

The text file reads something like this:

Book Author 1
Book Title 1
Book Author 2
Book Title 2
Book Author 3
Book Title 3

What syntax is used to store the first line into array bookAuthor[] and the second into bookTitle[] until end of file. I appreciate any help. Thanks guys.



Topic archived. No new replies allowed.