Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.1.2, 4.1.3, 4.1.4, 4.2.0
-
None
-
AIX 5.2
VisualAge C++ Professional / C for AIX Compiler, Version 6
-
Usability
Description
#include <string>
#include <fstream>
int main(int argc, char**argv)
{
std::ifstream i;
try
{
i.open("/tmp/largeFile.txt",std::ios::in);
if ( i.good() )
{ char s[1024]; i >> s ; // .getline(s, 100); std::cout << s << std::endl; }else
{ std::cout << "Open error\n"; } }
catch(...)
return 0;
}