Added separate read/write tracking in File<T>, so reading and writing from/to a file works properly now.