Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

FILEWRITE( nFd, cFname, cStr )

Purpose

Write a string to a file using FWRITE(); pop an error message if
unsuccessful.

Arguments

     nFd -- file handle of file to write to

     cFname -- name of the file to write to

     cStr -- string to write to the file

Setup

File must be open in a mode which allows the user to write to it.

Example

     LOCAL fname := "junk"
     IF fd := FILEOPEN( fname, 2 )
        FILEWRITE( fd, fname, "This is a string" )
     ENDIF

Returns

.T. if successful, else .F.

Side Effects

Writes to the file at the current file pointer position.

Artful Calls

POP_MSG

Source File

AA_FWRIT.PRG

See Also: ACCESS() FILEOPEN()

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