Update IO.cpp
Merge pull request #2 from Jakochen/patch-1

Update IO.cpp