Problem with text files
Author |
Message |
weB
|
Posted: Wed Jan 07, 2004 10:50 am Post subject: Problem with text files |
|
|
I just learnt Turing in class, and now comes a project.
I only have one problem, when I want to input text from a text file, how can I program it to accept one line of code at a time, instead of the whole file.
And is there a way to specify which line I input?
Thanks. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
shorthair
|
Posted: Wed Jan 07, 2004 11:09 am Post subject: (No subject) |
|
|
to do that you need to learn the mod ,seek,read commands |
|
|
|
|
|
weB
|
Posted: Wed Jan 07, 2004 11:17 am Post subject: (No subject) |
|
|
Would arrays be a better idea? It's not mandatory for me to use a text file. |
|
|
|
|
|
shorthair
|
Posted: Wed Jan 07, 2004 11:33 am Post subject: (No subject) |
|
|
Please tell me what the project is and what your goa is , so i can understand and help you |
|
|
|
|
|
weB
|
Posted: Wed Jan 07, 2004 11:37 am Post subject: (No subject) |
|
|
It's using a Turing program with parallel ports (LCD's), I don't really need more help now, just wanted to know if there was a way to get specific lines of text from a text file. Now I found out about arrays, the program should be finished. |
|
|
|
|
|
shorthair
|
Posted: Wed Jan 07, 2004 11:39 am Post subject: (No subject) |
|
|
there are tutorials for reading and writing in turing and on compsc,look hard enough and you might just learn a few things, i sugesst this so that you can improve the program your writing so that it can read from a file. |
|
|
|
|
|
|
|