Resolved file reading problem