open and save file.