Update io.cpp

open text file