edited program

changed opening file statement