In this chapter, we talked about input and output facilities that are available in Perl 6. The IO::Handle class provides the universal way of working with standard input and output streams as well as with files using the same interface. We discussed how to create files and how to test different properties of files and directories and examined various methods of reading and writing.
When working with files, you may sometimes be faced with exceptional situations; we've seen a few examples in this chapter. In the next chapter, we will discuss exceptions in Perl 6 in detail.