TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: AL MCLEAN
from: STEVEN LEI
date: 1997-11-05 18:24:00
subject: TClite and TC++Win

While Steven was reading other messages, Al Mclean wrote:
 AM> Hi All,
Hey there, Al.
 AM> Can some kind soul enlighten me on why the following code fragment
 AM> compiles perfectly under TCLite (for dos) but generates an error under
 AM> TC++ for Windows v3.1?
 AM> ifstream filestream(FinalFileName);
 AM> filestream.seekg(-360L, SEEK_END);
 AM> while (!filestream.eof())
I'm not sure if it also works under Windows... but for Borland's TC 3.0
for DOS works if you use
ifstream filestream("filename", ios::in);
However, the ios::in usually isn't necessary...  so I would probably say
that you should quote your file name.  I'm not sure what else to say at
the moment.
 AM> Compiling LOGDOS.CPP:
 AM> Error LOGDOS.CPP 49: Could not find a match for
 AM> 'istream::seekg(long,int)' 
 AM> What I am trying to do is to read the last 360 bytes from a file, it
 AM> works well under the DOS flavoured version, too.
                                Steven Lei
From: Las Vegas, Nevada, USA
E-mail = SpewMuffin@Juno.Com
... C'mon, wanna fight?  Take it outside!!, cuz it's freezing in here!!!
___ Blue Wave/DOS v2.30 [NR]
--- PCBoard (R) v15.21/M 2
---------------
* Origin: The Board running PCBoard 15.21 (702) 221-0083 (1:209/222)

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