save file and position