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


Please Help Members By Posting Answers For Below Questions

Can you pass an entire structure to functions?

895


What is a static variable in c?

857


What is meant by errors and debugging?

845


Write a code to generate a series where the next element is the sum of last k terms.

964


What is c standard library?

890


How would you use the functions fseek(), freed(), fwrite() and ftell()?

900


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

942


How can I automatically locate a programs configuration files in the same directory as the executable?

840


What is the difference between far and near ?

915


What is the difference between if else and switchstatement

1556


Does c have enums?

773


How do I determine whether a character is numeric, alphabetic, and so on?

847


How a string is stored in c?

792


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

784


Why c is known as a mother language?

834