Dear all,
I am currently writting a trace analyzer in C++.
It always fails to open a very large input file (3.7Gb).
I tried on a simple program, same thing happens:
==============================
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
std::ifstream loop_file(argv[1]);
if (!loop_file)
cout<<"cannot open file: "<<argv[1];
else
cout<<"successfully opened"<<endl;
}
==================
# ./tracer input.data
cannot open file input.data
But it works well on smaller input file, (e.g 200Mb)
I guess there is a limit of size on "std::ifstream" object.
I wonder if there is method I could open this large input file
in C++?
Any suggestion or pointer is highly appreciated!
Many thanks!
Charlie