Write an application that makes a copy of a file. It must ask the user for the source file name, then ask for the new file name, and then make the new file with the same contents as the source.
(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.…
- Working with header files
- C constants and types
- Unformatted and formatted input/output
- Accessing files with C functions
- Generating random numbers
- Converting strings
- Sorting and searching for data
- Manipulating strings
- Using mathematical functions
Skill Level Intermediate
C++ Standard Template Librarywith Eduardo Corpeño2h 23m Advanced
1. The C Standard Library
2. Input and Output Library: stdio.h
3. General Purpose: stdlib.h
4. String Functions: string.h
5. Mathematical Functions: math.h
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.