Logo Search packages:      
Sourcecode: gcc-2.96 version File versions

bug-35628.cc

#include <fstream.h>

int main(void) {
  ifstream ifs("/etc/issue",ios::in|ios::bin|ios::ate);
  cout << "Length: " << ifs.tellg() << endl;
  ifs.seekg(0,ios::end);
  cout << "Length: " << ifs.tellg() << endl;
  cout << "isGood? " << ifs.good() << endl;
  return 0;
}

Generated by  Doxygen 1.6.0   Back to index