file reader writer to test