154k views
5 votes
Write a program that asks the user for the name of a text file. the program should display the last 10 lines of the file on the screen

User Homerun
by
5.9k points

1 Answer

3 votes
The only thing that I know is that after you input the text file, it could either:
-save those lines as a variable
-display the text file
However any more would be dependent on the language.
User Firan
by
5.6k points