Update readandwritefiles.php