This chapter is devoted to input and output, which is mostly based on the IO::Handle class in Perl 6. Computer programs in general communicate with the user. It may either be the input and output in a console application, or reading configuration files, or saving results in a file on disk. In this chapter, we will talk about the input and output facilities in Perl 6.
The following topics will be covered in this chapter:
- Standard input and output
- Working with files
- Analyzing the properties of files and directories
- Methods for reading from input streams
- Methods for writing to output streams
- Formatted output