Update readwrite.c