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
Are the variables argc and argv are always local to main?
List out few of the applications that make use of Multilinked Structures?
What does the characters “r” and “w” mean when writing programs that will make use of files?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is the difference between constant pointer and constant variable?
What is the size of empty structure in c?
How can a string be converted to a number?
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.
Explain the array representation of a binary tree in C.
How to implement a packet in C
What are the 4 types of organizational structures?
Can you return null in c?
Can we declare function inside main?
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
What are header files and what are its uses in C programming?