Join Dan Gookin for an in-depth discussion in this video Solution overview, part of Code Clinic: C.
- My solution to this chapter's challenge…relies upon the ExifTool by Phil Harvey.…You can obtain ExifTool from Phil Harvey's website…as shown on the screen.…The program Pic n Sort calls this tool…to examine found jpeg files…as it recursively scans the name directory…and all sub-directories.…If the ExifTool isn't installed…then the program dies and displays…an appropriate error message.…Here I'm scanning the current directory tree.…Jpeg files with image caption or description data…are displayed.…
The results are listed alphabetically by caption.…Only jpeg files with that information are displayed…in this list.…Files without any caption or description are skipped.…The assignment called for organizing the images…in a directory structure based on the first letter…of the caption.…I could do that in the code,…but if you're using C and you're running the program…in a terminal, you probably want a bit more control.…So I opted for specially formatted output…instead of having the program copy or move the files.…If you want to copy the files…
Dan introduces challenges and then provides an overview of his solutions in C. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: Image Analysis
3. Problem Three: Eight Queens
4. Problem Four: Accessing Peripherals
5. Problem Five: Recursion and Directories
6. Problem Six: Building the Web
- 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.