Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question #3: C Programming [20 minutes, 20 points each (A) Write only a single C function named Copy that takes as parameters two file names

image text in transcribed

Question #3: C Programming [20 minutes, 20 points each (A) Write only a single C function named Copy that takes as parameters two file names called Source and Destination You can assume that the file names might have paths. You can also assume that the files are text files. Your function will copy the file from Source into Destination. (B) Write a C program that asks the user for two strings. The first string is a file extension, like .c or txt, the user can enter anything they like. The second string the user enters in the path to a destination directory. Your program must copy, using what you wrote in (A) above, all the files in the current directory matching the input extension into the destination directory provided by the user. This copy operation occurs only if the file does not already exist in that destination directory. Your C program is permitted to use the system0 function but you must use your solution from (A) to actually copy the files. Remember that part marks are given if you have trouble writing the entire thing

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago