C++ AUTOMATION LABExplore all five parts

Beginner workbook · Part III

Build tools.
Understand every step.

Files, Folders and Safe Previews

Learn C++17 by building small local tools, inspecting their results, and extending them with confidence.

Get Part III — $5Read the free sample

200 pages · 6 runnable programs · 24 practice cases

C++ Automation Lab Part III workbook cover

Inside this volume

Six tools. Four cases each.

01

Path Parts

A path is structured data. Build and inspect it through filesystem operations instead of manually splitting on slashes. These examples use relative ASCII paths so their printed components remain portable.

02

List Files

Directory iteration order is unspecified. Collect names and sort them before producing a reproducible report. This tool inspects immediate entries only and reports regular files without intentionally following symlinks.

03

File Bytes

Binary mode makes the byte count independent of text newline conversion. Reading in blocks avoids loading a whole file. Inspect stream errors after the read loop and reserve nonzero status for failure.

04

Preview Names

A preview separates a proposed change from an actual write. This tool appends .bak to file names and changes nothing. It does not claim to implement a complete rename policy or to resolve collisions.

05

Copy New

A copy tool must report a conflict rather than silently overwrite. This bounded example copies one file to a new destination. It intentionally does not implement backup rotation, recursive copying, or transactional durability.

06

Compare Files

Byte equality is a useful check after copying. Read in binary mode and stop on the first mismatch. This teaching tool reports equal or different and uses a separate failure status for unreadable files.

Read, run, debug, extend.

Each eight-page case includes a lesson, fixture setup, complete source, expected output, a debugging task, verification, an extension, and a handoff record.

A hands-on workbook with writing space. The 200 pages include tracing, planning, and reflection areas. Four cases intentionally revisit each program with different input. Download the sample to see the format before buying.

Your purchase includes the PDF and companion ZIP with six C++ source files, case definitions, expected results, and an optional Python test runner. This is a written workbook. Later volumes build on earlier skills. A C++17 compiler is required.

From first build to repeatable workflow

The five-part series

Each volume costs $5 USD and is sold separately.

Try the smallest passing example first.

Windows and VS Code setup guidance. Standard-library tools for trusted local ASCII lab fixtures. No desktop macro recording or browser automation is included.

Get the workbook — $5