Categories:
User Interface
Database Commands and Statements
Fill a series of arrays with directory information
ADIR( [ <cFilespec> ], [ <aFilenames> ], [ <aSizes> ], [ <aDates> ], [ <aTimes> ], [ <aAttributes> ] ) --> nFiles
Close a specific set of files
CLOSE [ <idAlias> | ALL | ALTERNATE | DATABASES | FORMAT |INDEXES ]
Copy a file to a new file
COPY FILE <xcSourceFile> TO <xcTargetFile> | <xcDevice>
Return the current DOS directory
CURDIR( [ <cDrivespec> ] ) --> cDirectory
Remove a file from disk
DELETE FILE | ERASE <xcFile>
Display a listing of files from a specified path
DIR [ <xcFileSpec> ]
Change the current DOS directory
DIRCHANGE(<cDir>) --> nSuccess
Create an array of directory and file information
DIRECTORY( <cDirSpec>, [ <cAttributes> ] ) --> aDirectory
Create a directory
DIRMAKE(<cNewDir>) --> nSuccess
Remove a directory
DIRREMOVE(<cDirName>) --> nSuccess
Change the current DOS disk drive
DISKCHANGE(<cDrive>) --> lSuccess
Return the current DOS drive
DISKNAME() --> cDrive
Return the space available on a specified disk
DISKSPACE( [ <nDrive> ] ) --> nBytes
Remove a file from disk
ERASE | DELETE FILE <xcFile>
Determine if files exist in the default directory or path
FILE( <cFilespec> ) --> lExists
Change the name of a file
RENAME <xcOldFile> TO <xcNewFile>
Echo console output to a text file
SET ALTERNATE TO [ <xcFile> [ADDITIVE]] SET ALTERNATE on | OFF | <xlToggle>
Set the CA-Clipper default drive and directory
SET DEFAULT TO [ <xcPathspec> ]
Specify the CA-Clipper search path for opening files
SET PATH TO [ <xcPathspec list> ]
Display the contents of a text file
TYPE <xcFile> [TO PRINTER] [TO FILE <xcOutFile> ]
Close an open binary file and write DOS buffers to disk
FCLOSE( <nHandle> ) --> lError
Create and/or truncate a binary file to zero length
FCREATE( <cFile>, [ <nAttribute> ] ) --> nHandle
Delete a file from disk
FERASE( <cFile> ) --> nSuccess
Test for errors after a binary file operation
FERROR() --> nErrorCode
Open a binary file
FOPEN( <cFile>, [ <nMode> ] ) --> nHandle
Read characters from a binary file into a buffer variable
FREAD( <nHandle>, @<cBufferVar>, <nBytes> ) --> nBytes
Read characters from a binary file
FREADSTR( <nHandle>, <nBytes> ) --> cString
Change the name of a file
FRENAME( <cOldFile>, <cNewFile> ) --> nSuccess
Set a binary file pointer to a new position
FSEEK( <nHandle>, <nOffset>, [ <nOrigin> ] ) --> nPosition
Write to an open binary file
FWRITE( <nHandle>, <cBuffer>, [ <nBytes> ] ) --> nBytesWritten
Return the current database file header length
HEADER() --> nBytes