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
What is c language & why it is used?
What is time null in c?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is the benefit of using an enum rather than a #define constant?
Explain how can I convert a number to a string?
What is a function simple definition?
Why static variable is used in c?
What is the purpose of void in c?
Write a program to check whether a number is prime or not using c?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Why string is used in c?
How can I handle floating-point exceptions gracefully?
What are void pointers in c?
What does the format %10.2 mean when included in a printf statement?
Describe static function with its usage?