Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Problem with text files
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
weB




PostPosted: 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
Sponsor
sponsor
shorthair




PostPosted: Wed Jan 07, 2004 11:09 am   Post subject: (No subject)

to do that you need to learn the mod ,seek,read commands
weB




PostPosted: 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




PostPosted: 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 Very Happy
weB




PostPosted: 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




PostPosted: 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. Very Happy
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: