Kivanc Gunalp 68f8369cb4 Harden file_io exercises: remove magic number, dedupe paths
- file_io3: replace the hardcoded expected file size (117) with
  SAMPLE_TEXT.len(), so the check is derived from the actual content
  instead of an unexplained magic number.
- file_io3: use create_dir_all instead of create_dir, and add a
  sample_file_path() helper shared by main/create_required_files/
  file_cleanup to avoid three separate ad-hoc path constructions.
- file_io1/file_io2: hoist the sample text into a SAMPLE_TEXT constant
  used by both the exercise and its solution, removing duplicated
  literals.

No behavioral change: all three solutions were rebuilt and run
locally, producing identical output (file size still 117, permissions
still non-readonly) with no leftover files.
2026-07-26 15:27:53 +00:00
..
2024-08-17 14:55:58 +02:00
2025-05-12 20:31:13 +02:00
2026-05-14 23:31:11 +02:00
2025-04-03 18:22:55 +02:00
2025-04-10 15:38:43 +07:00
2024-07-08 16:00:12 +02:00
2024-06-27 16:15:53 +02:00
2024-07-22 12:02:59 +02:00
2025-04-03 18:22:55 +02:00
2025-11-20 12:49:27 +01:00
2024-07-12 16:29:41 +02:00

Exercise to Book Chapter mapping

Exercise Book Chapter
variables §3.1
functions §3.3
if §3.5
primitive_types §3.2, §4.3
vecs §8.1
move_semantics §4.1-2
structs §5.1, §5.3
enums §6, §19.3
strings §8.2
modules §7
hashmaps §8.3
options §10.1
error_handling §9
generics §10
traits §10.2
lifetimes §10.3
tests §11.1
iterators §13.2-4
smart_pointers §15, §16.3
threads §16.1-3
macros §20.5
clippy Appendix D
conversions n/a