14. Input-Output

Input-output is provided in the language by means of predefined packages. The generic packages SEQUENTIAL_IO and DIRECT_IO define input-output operations applicable to files containing elements of a given type. Additional operations for text input-output are supplied in the package TEXT_IO. The package IO_EXCEPTIONS defines the exceptions needed by the above three packages. Finally, a package LOW_LEVEL_IO is provided for direct control of peripheral devices.

References: direct_io package, and 14.2.4, io_exceptions package, low_level_io package, sequential_io package, and 14.2.2, text_io package.

Sub-topics:

  • 14.1 External Files and File Objects
  • 14.2 Sequential and Direct Files
  • 14.3 Text Input-Output
  • 14.4 Exceptions in Input-Output
  • 14.5 Specification of the Package IO_Exceptions
  • 14.6 Low Level Input-Output
  • 14.7 Example of Input-Output

[INDEX][CONTENTS]