io.c code works, but gives the wrong output for floats. Read and Write for integers works.