Question: Lab: Lines of Text Python 3 The purpose of this assessment is to write a program that inserts lines of text from a file into
Lab: Lines of Text
Python 3
The purpose of this assessment is to write a program that inserts lines of text from a file into a list and allows the user to view any line of text from the file.
The program should present a menu of options that allow the user to enter a filename and to navigate to the first line, last line, next line, and previous line. Add commands to the program so that the user can delete the currently selected line, replace it with a new line, or insert a line at the current cursor position. The user should also be able to save the current file.
For the final output, display the file content after deletion of some lines from the file by the user. Use the following test data to test your project: a.txt b.txt c.txt Enter a file name to see the content: Content of file a.txt 1st line 2nd line 3rd line Last line Menu Options:
Press f to see the first line Press l to see the last line Press p to see previous line Press n to see next line Press d to delete current line Press s to show the content of the file Content of file a.txt 2nd line Last line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
