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

FILEOPEN( cFname, nMode[, lMsg ] )

Purpose

Try to open a DOS file using FOPEN(); on failure optionally pop a message
and, in multi-user mode, offer to retry.

Arguments

     cFname -- name of the file to open

     nMode -- open mode (see below)

     lMsg -- if passed, whether to pop a message and if multi-user
                 retry on failure; defaults to .T.

Setup

None.

Example

     IF !FILEOPEN( "newfile.txt", 34 ) ...
        POP_MSG( "Too bad." )
     ENDIF

Returns

The file handle from DOS, or 0 if not successful.

Side Effects

Opens the file if successful.

Artful Calls

POP_MSG

Source File

AA_FLOPN.PRG, AM_FLOPN.PRG

See Also: ACCESS() FILEWRITE()

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