Help with Input TEXT from .txt
Author |
Message |
qwertkeysrule
|
Posted: Mon Jan 15, 2007 11:23 am Post subject: Help with Input TEXT from .txt |
|
|
So i have read and searched forever on here for help with getting text(questions,answers) into my quiz but nothing has come through. I don't know how i can "get" the information from the text file into my questions using an array. I need the help quickly before it's due. thanks for help in advance. All i have been able to do is input one word which is nowhere close to what iI need. ![Confused Confused](http://compsci.ca/v3/images/smiles/icon_confused.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Mon Jan 15, 2007 1:54 pm Post subject: RE:Help with Input TEXT from .txt |
|
|
Have you checked out the Turing Walkthrough? It's got a link to the File I/O tutorial.
Just loop through each line of the file. Shouldn't be too hard, right?
If you still can't get it, what code have you got so far? |
|
|
|
|
![](images/spacer.gif) |
|
|