Re: Why no post in Stackoverflow.com

new topic     » goto parent     » topic index » view thread      » older message » newer message
_tom said...

The easy way to read a text file is:

include std/io.e 
 
fh = open ( " my_file.txt " , "r" ) 
data = read_file ( fh ) 
close ( fh ) 
 
-- data contains the entire contents of ## my_file.txt ## 
-- there is also write_file 

Thanks for this most convenient method.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu