Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - fileread(<c filespec>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FILEREAD(<C filespec>)
 Reads a text file from disk.
 Returns <expC> contents of a disk text file, or error message.

 Useful in transferring data between disk files and memo fields.

 Limited to files under 64K.

 * Read from file into memo field
 USE File
 APPEND BLANK
 REPLACE Memo_field WITH FILEREAD("Textfile.txt")
 * Remember to close files when no longer needed

 * Read from file into memory variable
 memvar = FILEREAD("Textfile.txt")


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: FILESIZE() FILEWRITE() ISDRIVE() WPSTRIP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson