TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CLIFF RHODES
from: JOE CANHOTO
date: 1997-03-28 12:37:00
subject: file size

file.seekg(0L, ios::end);
 
There is a problem with this method which can be worked around if you're 
using Microsoft Visual C++ 4.0 or later. It seems that microsoft decided not 
to allow use of seekg for the time being (weirdos). Here's something for you 
VC++ users....
while (cin.get()!=OL);
 
I've encountered this when switching over from Borland's C++ to the big Ms.
Anyway goodluck.
 
--- Maximus/2 2.02
---------------
* Origin: Five Guys BBS (1:221/1050)

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™.