Write a C Program to display the following menu:
Menu
1. Display
2. Copy
3. Append
4. Exit
Accept the choice (1-4) from the user, and perform the
following tasks:
Choice 1: Accept a file name from the user and display the
file on screen
Choice 2: Accept two file names, and copy first file to the
second
Choice 3: Accept two file names, and append second file to
the first file
Choice 4: Terminate the program
Answer Posted / kiran
Using command line opereators we can do this
Is This Answer Correct ? | 15 Yes | 14 No |
Post New Answer View All Answers
Can you pass an entire structure to functions?
What is a static variable in c?
What is meant by errors and debugging?
Write a code to generate a series where the next element is the sum of last k terms.
What is c standard library?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
How can I automatically locate a programs configuration files in the same directory as the executable?
What is the difference between far and near ?
What is the difference between if else and switchstatement
Does c have enums?
How do I determine whether a character is numeric, alphabetic, and so on?
How a string is stored in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Why c is known as a mother language?