File I/O Functions

(See also: String and Buffer Functions, Stream and Socket Functions)

CheckFileExist          (System Library) Checks for the existence of a specified file.

CheckPathExist         (System Library) Checks for the existence of a specified path.

CopyDir                  (System Library) Recursively copies a directory's files and sub-directories down through the entire directory tree.

Dir                         Performs a search in the given directory and returns an array of matching file names.

DriveInfo                Returns information about a disk drive.

FileDialogBox           Displays a threaded system common file dialog box.

FileFind                   Performs a search down through the directory tree structure and returns an array of matching file names.

FileSize                   Returns the size of a disk file in bytes.

FileStream               Returns a stream attached to a disk file or printer.

FRead                     Reads values from a formatted file and returns the number not read.

FWrite                    Writes ASCII or binary data to a file and may also be used to create or delete a file. Returns the number of data items not written.

Get                        Reads an array of historical data from a file and returns the relative file position of the file entry following the last one read, or an error code.

GetFileAttribs           Returns the attributes of the specified file.

GetHistory               Retrieves an array of data from a .DAT file for a certain time span.

GetLog                    Returns an array of logged data.

GetLogHeader          Returns the number of bytes in a log file header.

GetLogInfo              Obtains outline information for a historical data file.

MkDir                     Creates a directory on a disk and returns its own error code.

ModuleFileName       Returns the full path (including the drive letter) and file name of the document (.SRC) file of a module.

ReadINI                  (System Library) Reads a variable entry from an .INI file or a buffer containing one and returns its value.

ReadSectINI            (System Library) Reads an entire section entry from an .INI file or a buffer containing one and returns a 2-dimensional array containing variable names and their values.

ReadX                    Reads numeric data from a text file into the elements of an array.

ReadXY                   Reads data points from a file into the elements of two arrays.

Rename                  Renames an existing file.

ResyncDoc              Synchronizes the time and date for the document and .RUN files.

RmDir                     Destroys a directory on a disk and returns its own error code.

RunFileName            Returns the name of the .RUN file for a module, including the full drive and path.

RunFileVersion          Returns the minimum version of VTS that can read the .RUN files produced by the current version.

Save                      Stores data in a circular historical data file at times indicated by a condition and returns the record number last written to disk.

SaveHistory             Saves an array of data to a .DAT file for a certain time span.

SetFileAttribs           Sets the attributes of the specified file.

SetLogHeader          Sets the number of extra bytes stored in the log file header and returns an error code.

SplitPath                 Breaks up a file path name into its components.

TempFileStream       Uses the OS tmpfile() function to create a temporary file on disk and to connect a stream to the temporary file.

TGet                       Reads an array of historical data from a file and returns an indication of parameter errors.

ValidateHistory         Checks for incorrect and/or out of order timestamps in a specified .DAT file and replaces or corrects them as appropriate.

WriteINI                  (System Library) Writes a variable's value to an .INI file or a buffer containing one and returns its own error code.

WriteSectINI            (System Library) Writes an entire section to an .INI file or a buffer containing one and returns its error code.

Topics in this section:

Obsolete File I/O Functions