class methods for Read/WriteFile