Question
Im trying to get this functionality with this C program If more than one file is given, and if any of the files, except the
Im trying to get this functionality with this C program
If more than one file is given, and if any of the files, except the last one, does not exist, the program exits without viewing the rest of the files.
so say the compiled program is called mymore if i type mymore 1.txt 2.txt 3.txt
it should view the text file contents one after the other
/* * mymore.c -- simplified version of Linux more command * This command read a file and print the first 24 lines. * Then, the program pause for a few special commands to continue or quit. */ #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started