Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>memowrit()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MEMOWRIT()
 Write a character string or memo field to a disk file
------------------------------------------------------------------------------
 Syntax

     MEMOWRIT(<cFile>, <cString>) --> lSuccess

 Arguments

     <cFile> is the name of the target disk file including the file
     extension and optional path and drive designator.

     <cString> is the character string or memo field to write to <cFile>.

 Returns

     MEMOWRIT() returns true (.T.) if the writing operation is successful;
     otherwise, it returns false (.F.).

 Description

     MEMOWRIT() is a memo function that writes a character string or memo
     field to a disk file.  If a path is not specified, MEMOWRIT() writes
     <cFile> to the current DOS directory and not the current DEFAULT
     directory.  If <cFile> already exists, it is overwritten.

     MEMOWRIT() is generally used with MEMOREAD() to load text files into
     memory where they can be edited, displayed, and written back to disk.
     You can also use MEMOWRIT() as a quick way of exporting a memo field to
     a text file.

 Examples

     .  This example uses MEMOWRIT() with MEMOREAD() to allow editing
        of memo fields with an external editor:

        LOCAL cEditor := "MYEDIT.EXE"
        USE Sales NEW
        IF MEMOWRIT("Cliptmp.txt", Notes)
           RUN (cEditor + " Cliptmp.txt")
           REPLACE Notes WITH MEMOREAD("Cliptmp.txt")
        ELSE
           ? "Error while writing Cliptmp.txt"
           BREAK
        ENDIF

 Files:  Library is EXTEND.LIB.

See Also: MEMOEDIT() MEMOREAD()

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