Use BufferReader and BufferWriter