[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MEMOREAD()

    Reads the contents of a text file read from disk.

Syntax

    MEMOREAD(<expC>)

Argument

    <expC> is the name of the file you want to read from disk.  Note that
    it must include an extension if there is one and can optionally include
    the path.

Returns

    A character string.

    MEMOREAD() returns the contents of a text file as a character string.
    The maximum file size that can be read is 65,535 characters (64K), the
    maximum size of a character memory variable.

Example

    The following uses MEMOREAD() to assign the contents of a text file to
    both a memo field and a character variable.

    REPLACE Notes WITH MEMOREAD("Temp.txt")
    chrvar = MEMOREAD("Temp.txt")          

    This program uses MEMOREAD() to read a file from disk, edit it, and
    write it back:

    * Editor.prg                            
    PARAMETERS file                         
    MEMOWRIT(file, MEMOEDIT(MEMOREAD(file)))
    RETURN                                  

See Also: HARDCR MEMOEDIT MEMOLINE MLCOUNT MEMOTRAN REPLACE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson