yes.
We have a file called “locations.txt” that we want to read data from. Check to make sure that the file was opened properly; if it wasn’t, display an error message and exit with a status of 1. Put the necessary blocks of code in the correct order.