make read/write methods on File