Modified FileReadWrite.