Function MemoRead() Foundation
Reads the contents of a file from disk.
MemoRead( <cFilename> ) --> cString
MemoRead() reads an entire file and returns its contents as a character string. Any size file can be read by MemoRead(). When <cFilename> contains an invalid name or is not found, MemoRead() returns a null string ("").
The memo function MemoRead() provides an easy way to read complete files from disk to main memory. The contents of the file are returned as a character string and can be further processed with other memo functions like MemoEdit() or MemoLine(). Using the function MemoWrit() the character string can later be written back into the file.
MemoRead() searches for <cFilename> in the current directory. SET DEFAULT and SET PATH settings are ignored by MemoRead(). When <cFilename> is found, MemoRead() attempts to open the file in Shared and Read-only mode. If the file is already open exclusively, MemoRead() returns a null string ("").
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.