Topic: How different flows to read one text file?
Decided to break reading of the big files into small slices (that the data did not exceed the RAM). For example, the first flow reads the first 100 MB of the file, the second flow reads from 100 to 200 MB, the third from 200 to 300 MB...
And so if files to divide into pieces on 100 (i.e. not to divide, because all files less than this size) handling is completed successfully. But as soon as I divide them on 100 MB through any time the program falls out with an error. By the way, the same algorithm of reading of files was long used earlier without division into slices and perfectly worked, i.e. the error as seems to me in multi-threaded reading of one file.
How to solve?