I'm giving you this because you do not sound like a programming student.
If you are, you should have already learned this. If you are a student and don't already know this your going to fail. Me giving it to you isn't going to change that unless you apply yourself.
This is the basics of what you want, it doesn't check to see if the file exist, or give you a error if the file is not found.
There are no comments, so you will need to look up what each line does and how it works if you wish to change it, but it's pretty noob friendly.
This is the base for adding more features, such as you can change it to show one screen at a time; search for a word or string in a file; if the file has numbers you can do math; with a few changes you can write to a file, but you need to learn what every line in this program does before you can begin the next step: changing it to do what you want.