Thank you! I've tried a few things and got the file to open and display all, I'm having a hard time using the individual information from the lines pulled.
Here's what I have now:
So, I'm trying to take information from bookfile.txt and display information from it. So far, I've opened the file. I'm having trouble getting each line as one object of arrayBooks.
I'd like to have arrayBooks[0]="Animal Farm,1945,152,G eorge Orwell"
Then, I'm going to use book1 = arrayBooks[0].split(',') to split it to other information, such as:
book1[0]="Animal Farm"
book1[1]=1945...
Leave a comment: