open() now resets pointer to beginning of file