TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JOE DUNFORD
from: ROGER SCUDDER
date: 1997-10-01 12:13:00
subject: read more than 64k

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.