Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>memoread()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MEMOREAD()


Syntax:     MEMOREAD(<expC>)

Purpose:    To read the contents of a text file from disk.

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.

Library:    EXTEND.LIB


----------------------------------- Examples -------------------------------

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

   * Notes is a memo field.
   REPLACE Notes WITH MEMOREAD("Temp.txt")
   charvar = MEMOREAD("Temp.txt")

   This following is a simple procedure that uses MEMOREAD() to read a
   file from disk, edit it, and write it back.

   PROCEDURE Editor
   PARAMETERS file

   MEMOWRIT(file, MEMOEDIT(MEMOREAD(file)))

   RETURN


See Also: REPLACE MEMOEDIT() MEMOWRIT()

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