Hi JOE,
JOE DUNFORD was observed on 01-Oct-97, writing to ROGER SCUDDER
Something about: read more than 64k
JD> If you wouldn't mind, it would help me a lot if you converted
JD> the code I posted to C++. Just as a learning aid. ;-)
Yeah, right... an aid for who?!?
/*
// begin code
#include
int main (void)
{
ifstream fInput;
long lCounter;
char cTemp;
const char *fName = "C:\\tc\\bin\\tc.exe";
lCounter = 0L;
fInput.open( fName, ios::in | ios::binary );
if ( fInput==NULL )
return 1;
while (fInput.get(cTemp))
lCounter+=1;
cout << "There were " << lCounter << " items read. \n";
fInput.close ();
return 0;
}
// end code
*/
Roger Scudder
rscudder@usa.net
... This message released to public domain. Use at your own risk.
--- Terminate 5.00/Pro
* TerMail/QWK * Terminate does both QWK offline-mail and fido-mail!
---------------
* Origin: Fidonet * Storm Front BBS (215)788-4662 v.34+ (1:273/60)
|