incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Dean (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-66) Errors accessing large files
Date Fri, 11 Nov 2005 17:24:03 GMT
 Errors accessing large files
-----------------------------

         Key: STDCXX-66
         URL: http://issues.apache.org/jira/browse/STDCXX-66
     Project: STDCXX
        Type: New Feature
    Versions: 4.1.2    
 Environment: AIX 5.2
VisualAge C++ Professional / C for AIX Compiler, Version 6
    Reporter: Jeremy Dean
    Priority: Minor


#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(...)
    {
        std::cout << "error\n";
    }
    return 0;
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message