|
From: Noorez K. <lor...@ho...> - 2006-06-08 01:32:43
|
You can test if the file is valid like this
=20
ifstream infile("testfile.dat");
=20
if( !infile )
{ return -1;//error
}
> To: dev...@li...> From: esc...@gm...> Date=
: Wed, 7 Jun 2006 21:14:54 -0400> Subject: [Dev-C++] fstream> > when openin=
g an ifstream, how do you tell if the file exists?> > > ___________________=
____________________________> Dev-cpp-users mailing list> Dev-cpp-users@lis=
ts.sourceforge.net> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcp=
p/ub.htm> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/=
|