# New Ziglings exercise from a new contributor

**URL:** <https://ziggit.dev/t/new-ziglings-exercise-from-a-new-contributor/3717>\
**Category:** News\
**Tags:** learning\
**Created:** [March 27, 2024, 7:02pm UTC](https://ziggit.dev/t/new-ziglings-exercise-from-a-new-contributor/3717 "2024-03-27T19:02:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrboesch](https://ziggit.dev/user_avatar/ziggit.dev/chrboesch/32/438_2.png) [@chrboesch](https://ziggit.dev/u/chrboesch)\
**Post date:** [March 27, 2024, 7:02pm UTC](https://ziggit.dev/t/new-ziglings-exercise-from-a-new-contributor/3717/1 "2024-03-27T19:02:47Z")

</div>

Today we received two new exercises for file handling from a new Ziglings contributor. And they are not easy. 😄

I wish you lots of fun!

```zig
// Until now, we've only been printing our output in the console,
// which is good enough for fighting alien and hermit bookkeeping.
//
// However, many other task require some interaction with the file system,
// which is the underlying structure for organizing files on your computer.
//
// The File System provide a hierarchical structure for storing files
// by organizing files into directories, which hold files and other directories,
// thus creating a tree structure for navigating.
//
// Fortunately, zig standard library provide a simple api for interacting
// with the file system, see the detail documentation here
//
// https://ziglang.org/documentation/master/std/#std.fs
//
// In this exercise, we'll try to
// - create a new directory
// - open a file in the directory
// - write to the file.

```

[Exercise 106 file writing](https://codeberg.org/ziglings/exercises/src/branch/main/exercises/106_files.zig)  
[Exercise 107 file reading](https://codeberg.org/ziglings/exercises/src/branch/main/exercises/107_files2.zig)

---

<div class="post-metadata">

**Author:** ![dude\_the\_builder](https://ziggit.dev/user_avatar/ziggit.dev/dude_the_builder/32/557_2.png) [@dude\_the\_builder](https://ziggit.dev/u/dude_the_builder)\
**Post date:** [March 27, 2024, 7:09pm UTC](https://ziggit.dev/t/new-ziglings-exercise-from-a-new-contributor/3717/2 "2024-03-27T19:09:46Z")

</div>

Awesome contributions! I edited to fix the second link. It was missing a 2 (107\_files2.zig). :^)
