Question: Problem 6 : ( 1 0 points ) UNIX cat You will implement a Python version of the UNIX filesystem utility cat which prints the
Problem : points UNIX cat
You will implement a Python version of the UNIX filesystem utility cat which prints the content of a text file to the screen. The program cat is the starting point of many of the other UNIX file system utilities.
Your program will open a filename provided by the user and print every line of the opened file to the screen without modification. In particular, make sure to suppress the newline character added by the print function.
Here is an example of how your program should prompt the user for the filename and print the contents of the file. In this example the file is song.txt darr and it contains the first two lines of the infamous lumberjack song.
Enter a file name to open:song.txt
Im a lumberjack and Im OK
I sleep all night, I work all day
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
