From the course: C Standard Library

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: Copying a text file

Challenge: Copying a text file - C Tutorial

From the course: C Standard Library

Start my 1-month free trial

Challenge: Copying a text file

(upbeat music) - [Instructor] Here's a challenge to test what you've learned so far about file handing in the stdio.h header file, for this challenge you must write an application that makes a copy of an existing text file. The application must ask the user to enter both the source and the copy file names. Keep in mind that the objective is for you to play around with the tools provided in stdio.h so don't worry about validating special cases like a user entering an invalid file name, a name for a non-existing source file, or the same name for both files. Just be optimistic for now. This should take you about 20 minutes, when you are done, watch the solution video.

Contents