Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-66

implement large file support in iostreams

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.1.2, 4.1.3, 4.1.4, 4.2.0
    • Fix Version/s: 5.0.0
    • Component/s: 27. Input/Output
    • Labels:
      None
    • Environment:

      AIX 5.2
      VisualAge C++ Professional / C for AIX Compiler, Version 6

    • Severity:
      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(...)

      { std::cout << "error\n"; }

      return 0;
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jdean Jeremy Dean
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: