
-----------------------------------
weB
Wed Jan 07, 2004 10:50 am

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.

-----------------------------------
shorthair
Wed Jan 07, 2004 11:09 am


-----------------------------------
to do that you need to learn the mod ,seek,read commands

-----------------------------------
weB
Wed Jan 07, 2004 11:17 am


-----------------------------------
Would arrays be a better idea? It's not mandatory for me to use a text file.

-----------------------------------
shorthair
Wed Jan 07, 2004 11:33 am


-----------------------------------
Please tell me what the project is and what your goa is , so i can understand and help you  :D

-----------------------------------
weB
Wed Jan 07, 2004 11:37 am


-----------------------------------
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
Wed Jan 07, 2004 11:39 am


-----------------------------------
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. :D
