I'm having a problem to write a file and read the same file in sequence. The file size is 4 GB. I tried fstream for both and as second option ofstream and ifstream. I'm reading just the first 2 lines of the file. If I read those in separated programs work well. I think the file is so big and when I'm trying to access it, it's not in the HD yet.
Can anyone give some suggestions?
Thanks a lot!