Remember previous position when opening a file