You need to use the first stream to read/write binary files. An the second stream to read/write text files.