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

What is c language & why it is used?

582


What is time null in c?

583


Explain how can I prevent another program from modifying part of a file that I am modifying?

641


What is the benefit of using an enum rather than a #define constant?

661


Explain how can I convert a number to a string?

650






What is a function simple definition?

618


Why static variable is used in c?

556


What is the purpose of void in c?

619


Write a program to check whether a number is prime or not using c?

576


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1261


Why string is used in c?

581


How can I handle floating-point exceptions gracefully?

636


What are void pointers in c?

574


What does the format %10.2 mean when included in a printf statement?

1090


Describe static function with its usage?

612