incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-66) Errors accessing large files
Date Fri, 11 Nov 2005 17:51:03 GMT
    [ http://issues.apache.org/jira/browse/STDCXX-66?page=comments#action_12357411 ] 

Martin Sebor commented on STDCXX-66:
------------------------------------

See this thread: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200511.mbox/%3c4373C38E.2090105@roguewave.com%3e

>  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