Computer Science Canada

How do you display a text file?

Author:  born130 [ 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

Author:  hskhan [ Sun Jun 15, 2003 5:49 pm ]
Post 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

Author:  born130 [ Sun Jun 15, 2003 6:35 pm ]
Post subject: 

Thanks


: