io sequence

read and write to a file