Update readWrite.java