fstream-File Pointer-DOS Handle Equivalency Table
PRODUCT : Borland C++ NUMBER : 646
VERSION : 2.0
OS : PC DOS
DATE : August 12, 1992 PAGE : 1/2
TITLE : fstream-File Pointer-DOS Handle Equivalency Table
The following provides, in tabular format, the equivalent
functions between FILE pointers, C++ file Streams and DOS file
handles.
fstreams consist of fstreams, ifstreams and ofstreams. FILE
pointers are obtained from fopen, freopen, fdopen and other
functions. DOS handles are obtained from open, _open, create and
others.
FILE * FSTREAM HANDLE Notes:
====================================================================
fopen fp.open or open
constructor
fseek fp.seekp lseek
ftell fp.tellp tell 1.0 has bugs in
the tellp family
feof fp.eof eof
fread fp.read read
fwrite fp.write write
fileno (fp.rdbuf())->fd() <NA>
use fileno use fstrno chsize see below for
def of fstrno
fcloseall <NA>
fdopen fp.attach <NA>
ferror
fflush fp.sync <NA>
fgetc fp.get use read
fgetpos use tellp use tell
fsetpos use seekp use lseek
PRODUCT : Borland C++ NUMBER : 646
VERSION : 2.0
OS : PC DOS
DATE : August 12, 1992 PAGE : 2/2
TITLE : fstream-File Pointer-DOS Handle Equivalency Table
fgets fp.get use read
use fileno use fstrno filelength
flushall <NA>
fprintf iomanip <NA>
fputc operator << use write
fputs operator << use write
freopen <NA>
fscanf operator >> <NA>
with iomanip
use fileno use fstrno fstat
use fileno use fstrno getftime
use fileno use fstrno setftime
use fileno use fstrno lock
use filno use fstrno setmode
setvbuf <NA>
use fdopen use attach sopen
use fileno use fstrno unlock
================================================================
Stream equivalent of file number:
#define fstrno(fp) (((fp).rdbuf())->fd())
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.
Comments
Post a Comment