13.14. FILE/IO

About
Functions order

13.14.1. About FILE/IO

13.14.2. FILE/IO functions order

ADIR() Fill a series of arrays with directory information
BZIP2CLOSE() Close bZIP2 file.
BZIP2OPEN() Open bZip2 file.
BZIP2READ() Read data from bZIP2 file.
BZIP2WRITE() Write data to bZIP2 file.
CURDIR() Return the current DOS directory
DIRCHANGE() Change the current DOS directory
DIRECTORY() Create an array of directory and file information
DOSERROR() Return the last DOS error number
DOSPATH() Returns file name as DOS file name.
FACCESS() Check access to file.
FCLOSE() Close an open binary file and write DOS buffers to disk
FCREATE() Create and/or truncate a binary file to zero-length
FERASE() Delete a file from disk
FERROR() Test for errors after a binary file operation
FERRORSTR() Under construction
FILE() Determine if files exist in the xClipper default directory or path
FILEATTR() Under construction
FILEATTRS() Returns string - file attributes.
FILEGETSTR() Returns string.
FOPEN() Open a binary file
FREAD() Read characters from a binary file into a buffer variable
FREADSTR() Read characters from a binary file
FRENAME() Change the name of a file
FSEEK() Set a binary file pointer to a new position
FT_DFCLOSE() Close file displayed by FT_DISPFILE()
FT_DFSETUP() Set up parameters for FT_DISPFILE()
FT_FAPPEND() Appends a line to the currently selected text file
FT_FBOF() Determine if attempt to skip past beginning of text file
FT_FDELETE() Deletes a line from the currently selected text file
FT_FEOF() Determine if end of text file has been encountered
FT_FERROR() Return the error code for a text file operation
FT_FGOBOT() Go to the last record in a text file
FT_FGOTO() Move record pointer to specific record in a text file
FT_FGOTOP() Go to the first record in a text file
FT_FINSERT() Inserts a line in the currently selected text file
FT_FLASTRE() Get the no. of records in the currently selected text file
FT_FREADLN() Read a line from the currently selected text file
FT_FRECNO() Return the current record number of a text file
FT_FSELECT() Select a text file workarea
FT_FSKIP() Move the record pointer to a new position in a text file
FT_FUSE() Open or close a text file for use by the FT_F* functions
FT_FWRITELN() Write a line to the currently selected text file
FWRITE() Write to an open binary file
GZIPCLOSE() Close GZIP file.
GZIPOPEN() Open GZIP file.
GZIPREAD() Read data from GZIP file.
GZIPWRITE() Write data to GZIP file.
MAKEPATH() Returns path to file in UNIX style.
MEMOREAD() Return the contents of a disk file as a character string
MEMOWRIT() Write a character string or memo field to a disk file
NETERR() Determine if a network command has failed
OUTERR() Write a list of values to the standard error device
OUTSTD() Write a list of values to the standard output device
STARTPATH() Returns full path and name of program.
TCPACCEPT() Accept a connection on a socket.
TCPCLOSE() Close connection.
TCPCONNECT() Connect with server.
TCPLISTEN() Listen port.
TCPREAD() Read to buffer data from connection.
TCPWRITE() Commit data from buffer to connection.

13.14.2.3. Function FCREATE()

 FCREATE(<cFile>, [<nAttribute>]) --> nHandle

13.14.2.10. Function FOPEN()

 FOPEN(<cFile>, [<nMode>]) --> nHandle

13.14.2.10.1. Arguments

<cFile> is the name of the file to open, including the path if there
  is one.
  
<nMode> is the requested DOS open mode indicating how the opened
  file is to be accessed. The open mode is composed of elements from the
  two types of modes described in the tables below. If just the Access
  Mode is used, the file is opened non-sharable. The default open mode is
  zero, which indicates non-sharable and read-only.
  
  
 
FOPEN() Access Modes
------------------------------------------------------------------------
Mode    Fileio.ch      Operation
------------------------------------------------------------------------
0       FO_READ        Open for reading (default)
1       FO_WRITE       Open for writing
2       FO_READWRITE   Open for reading or writing
------------------------------------------------------------------------
  
  The Sharing Modes determine how other processes may access the file.
  
  
 
FOPEN() Sharing Modes
------------------------------------------------------------------------
Mode    Fileio.ch      Operation
------------------------------------------------------------------------
0       FO_COMPAT      Compatibility mode (default)
16      FO_EXCLUSIVE   Exclusive use
32      FO_DENYWRITE   Prevent others from writing
48      FO_DENYREAD    Prevent others from reading
64      FO_DENYNONE    Allow others to read or write
64      FO_SHARED      Same as FO_DENYNONE
------------------------------------------------------------------------
  
  The Access Modes in combination (+) with the Sharing modes determine the
  accessibility of the file in a network environment.

13.14.2.11. Function FREAD()

 FREAD(<nHandle>, @<cBufferVar>, <nBytes>) --> nBytes

13.14.2.12. Function FREADSTR()

 FREADSTR(<nHandle>, <nBytes>) --> cString

13.14.2.13. Function FRENAME()

 FRENAME(<cOldFile>, <cNewFile>) --> nSuccess

13.14.2.14. Function FSEEK()

 FSEEK(<nHandle>, <nOffset>, [<nOrigin>]) --> nPosition

13.14.2.16. Function FT_DFSETUP()

 FT_DFSETUP( <cInFile>, <nTop>, <nLeft>, <nBottom>, <nRight>, ;
 <nStart>, <nCNormal>, <nCHighlight>, <cExitKeys>,   ;
 <lBrowse>, <nColSkip>, <nRMargin>, <nBuffSize> ) -> nResult

13.14.2.33. Function FWRITE()

 FWRITE(<nHandle>, <cBuffer>, [<nBytes>]) --> nBytesWritten