Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI815.ASC

 
Output of file : TI815.ASC contained in archive : C-ALL.ZIP







PRODUCT : Turbo C++, Borland C++ NUMBER : 815
VERSION : All
OS : PC DOS
DATE : September 11, 1991 PAGE : 1/1

TITLE : fstream vs. FILE * vs. DOS handles




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
================================================
fopen fp.open or open
constructor
fseek fp.seekp lseek
ftell fp.tellp tell
feof fp.eof eof
fread fp.read read
fwrite fp.write write
fileno (fp.rdbuf())->fd()
use fileno use fstrno chsize
fstrno
fcloseall
fdopen fp.attach
ferror
fflush fp.sync
fgetc fp.get use read
fgetpos use tellp use tell
fsetpos use seekp use lseek
fgets fp.get use read
use fileno use fstrno filelength
flushall
fprintf iomanip
fputc operator << use write
fputs operator << use write
freopen
fscanf operator >>
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
use fdopen use attach sopen
use fileno use fstrno unlock













PRODUCT : Turbo C++, Borland C++ NUMBER : 815
VERSION : All
OS : PC DOS
DATE : September 11, 1991 PAGE : 2/1

TITLE : fstream vs. FILE * vs. DOS handles




Stream equivalent of file number:
#define fstrno(fp) (((fp).rdbuf())->fd())

















































  3 Responses to “Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI815.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/