I wrote a program to read a file, store that information into a 3d array, sort that array, and then write to a file. Should be straightforward . The problem I am running into is within the writing part.
I've taken the sorting function out.
For debugging purposes- when the file is written, a counter tells me that all pieces of information have been written, however, by visual inspection the data is jumbled and missing quite a few pieces of data. I have also tried displaying the data, supposedly being written, to the screen. I can't see anything funky going on. This is partly because I am trying to work with files on the order of 512-1000MB.
If I load a small file, ~10MB, no problems. I just have problems with larger file sizes.
So, here's my question (sorry for my long windedness): Are there limitations to the size of file that can be written using ofstream?
I can post my code if that would be helpful. I know this should be so simple. I am pretty inexperienced with C++.
Thanks in advance!
I've taken the sorting function out.
For debugging purposes- when the file is written, a counter tells me that all pieces of information have been written, however, by visual inspection the data is jumbled and missing quite a few pieces of data. I have also tried displaying the data, supposedly being written, to the screen. I can't see anything funky going on. This is partly because I am trying to work with files on the order of 512-1000MB.
If I load a small file, ~10MB, no problems. I just have problems with larger file sizes.
So, here's my question (sorry for my long windedness): Are there limitations to the size of file that can be written using ofstream?
I can post my code if that would be helpful. I know this should be so simple. I am pretty inexperienced with C++.
Thanks in advance!
Comment