in reply to Strange Missing Data
To expand slightly on the previous reply, your code would try but fail to make a directory named "IO" if there were already a data file named "IO" in the current working directory. (But the other doubts raised in the first reply deserve inspection as well.)