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] Updated: (STDCXX-66) implement large file support in iostreams
Date Fri, 09 Dec 2005 01:39:09 GMT
     [ http://issues.apache.org/jira/browse/STDCXX-66?page=all ]

Martin Sebor updated STDCXX-66:
-------------------------------

    Component: 27. Input/Output
      Summary: implement large file support in iostreams  (was:  Errors accessing large files)

> implement large file support in iostreams
> -----------------------------------------
>
>          Key: STDCXX-66
>          URL: http://issues.apache.org/jira/browse/STDCXX-66
>      Project: STDCXX
>         Type: New Feature
>   Components: 27. Input/Output
>     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