Course of Raku / Objects, I/O, and exceptions / Input and output / Working with directories / Exercises

Make a directory

Problem

Create a directory called reports, then write a file data.txt inside it. Print whether reports is now a directory, and whether the file reports/data.txt exists.

Example

The program prints:

True
True

Solution

See the solution

Course navigation

Solution: Does it exist?   |   Solution: Make a directory