So i am trying to read some files and it works until a certian file in which it fails and files following fails. The name starts at 2011-11-11_0100.csv
It gets all the files between then and 2011-11-11_0200.csv
but the next file fails even though the program has the right file name and it does exist?
whenever some thing fails while reading a file the error flag is set to true, after that all subsequent read will fail. so when you find some error while reading and come over it reset the error flag to false before you proceed.