finish exercise to open file

function working correctly;
cleaned up spacing.
delete
saved