Course of Raku / Objects, I/O, and exceptions / Input and output / Deleting files and directories / Exercises
Delete a file
Problem
Create a file note.txt with spurt, and
print whether it exists. Then delete it with unlink, and
print again whether it exists.
Example
The program prints:
True
FalseSolution
Course navigation
← Deleting files and directories | Solution: Delete a file →