[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|            FCHSIZE              |
+---------------------------------+
FCHSIZE(<expN1>, <expN2>)

-----------------------------------
Changes size of file opened with low-level file function.
Return value - Numeric
-----------------------------------

<expN1>
        File handle, returned by the FOPEN() function when you open a file for
low-level use, or by FCREATE() if you have just created a file.  If a
file is opened with FOPEN(), it must be opened with write or read/write
privileges to change its size.

<expN2>
        Size you want file to be.  If <expN2> is less than the original file
size the file will be truncated.  If <expN2> is greater than the
original file size the file's size is expanded.

The final size of the file in bytes is returned.  If FCHSIZE is unable
to change the file size (there is insufficient disk space, an invalid
file handle is specified, etc.) -1 is returned.

-----------------------------------

See Also:  FCLOSE(), FCOUNT(), FCREATE(), FEOF(), FERROR(), FFLUSH(),
FGETS(), FOPEN(), FPUTS(), FREAD(), FSEEK(), FSIZE(), FWRITE()

-----------------------------------

See Also: FCLOSE() FCOUNT() FCREATE() FEOF() FERROR() FFLUSH()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson