std::fstream ifs;
ifs.open("hugeFile",std::fstream::in | std::fstream::binary);
std::string line;
while(getline(ifs,line) {
//both these will lead to error once the value of 2^32 is crossed
unsignedint pos = ifs.tellg();
ifs.seekg(pos);
}
what could be the simplest (relatively smaller learning curve) replacement to this? i've never used win32 API's though i'm familiar with boost as i use boost::regex very often. I just need the facility to seek and obtain the file pointer position which is a stumbling block to my application
This is why we call it an object oriented language. Everything has its right type. Don't extrapolate types yourself, so that you can keep your code valid for the future as long as possible. In the future when computers are 256 bits, your code wouldn't be valid anymore if you use your own types. Stick to the types provided by the standard for the function used by the standard.