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

Are the variables argc and argv are always local to main?

559


List out few of the applications that make use of Multilinked Structures?

1268


What does the characters “r” and “w” mean when writing programs that will make use of files?

839


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15472


What is the difference between constant pointer and constant variable?

737






What is the size of empty structure in c?

579


How can a string be converted to a number?

500


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

640


Explain the array representation of a binary tree in C.

712


How to implement a packet in C

2383


What are the 4 types of organizational structures?

613


Can you return null in c?

586


Can we declare function inside main?

553


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1618


What are header files and what are its uses in C programming?

620