basic.%open.apdos

C Function/BASIC Program, Releases: AP/DOS

Opens an MS-DOS file for reading or writing.

Syntax

file.handle=%open( file.name, fflgs, eflgs )

Description

opens an existing MS-DOS file or creates a new MS-DOS file specified by 'file.name' with the specified 'fflgs' and 'eflgs'.

Valid 'fflgs' and 'eflgs' are defined in the item 'dm,bp,dos fcntl.h'. For additional information refer to the MS-C library reference manual for OPEN().

Should an error condition occur during this C function, the 'system(0)' function contains the associated error message number.

See Also

Command Name Type Description
basic.cfunc Definition can be called from a Pick/BASIC program or subroutine in AP/DOS and AP/Unix implementations using a syntax similar to that of normal C.
basic.cfunction Definition Declare a list of C functions.
basic.system Function Displays status of system-controlled variables.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.