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

Username:   Password: 
 RegisterRegister   
 How do you display a text file?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
born130




PostPosted: Sun Jun 15, 2003 4:09 pm   Post subject: How do you display a text file?

How do you display a text file in your program?

i.e. calling it up

thanks
Sponsor
Sponsor
Sponsor
sponsor
hskhan




PostPosted: Sun Jun 15, 2003 5:49 pm   Post subject: (No subject)

code:
var stream : int
var line : string
%filename goes in place of inst.txt
open : stream, "inst.txt", get

% Read the file and place it in the text box.
loop
    exit when eof (stream)
    get : stream, line : *

    put line

end loop
born130




PostPosted: Sun Jun 15, 2003 6:35 pm   Post subject: (No subject)

Thanks
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  [ 3 Posts ]
Jump to:   


Style:  
Search: