Re: Why no post in Stackoverflow.com
- Posted by rneu Jun 25, 2017
- 1388 views
_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.