The data printed well according to the looping I make but I received File I/O error after it finish written on txt. Can anybody tell whats wrong and why the system throws va