Sequential_IO on the same file with different types, to achieve
heterogeneous input-output. Although this approach will work in GNAT if
``shared=yes`` is specified, it is preferable in Ada to use Stream_IO
-for this purpose (using the stream attributes)
+for this purpose (using the stream attributes).
.. _Filenames_encoding:
@copying
@quotation
-GNAT Reference Manual , Nov 04, 2024
+GNAT Reference Manual , Nov 08, 2024
AdaCore
Sequential_IO on the same file with different types, to achieve
heterogeneous input-output. Although this approach will work in GNAT if
@code{shared=yes} is specified, it is preferable in Ada to use Stream_IO
-for this purpose (using the stream attributes)
+for this purpose (using the stream attributes).
@node Filenames encoding,File content encoding,Shared Files,The Implementation of Standard I/O
@anchor{gnat_rm/the_implementation_of_standard_i_o filenames-encoding}@anchor{2e2}@anchor{gnat_rm/the_implementation_of_standard_i_o id22}@anchor{2e3}
-- defaults at this level). The string is always null-terminated.
Mode : File_Mode;
- -- The file mode. No checks are made that the mode is consistent
- -- with the form used to fopen the file.
+ -- The file mode. When sharing files, we check that the mode is
+ -- consistent with the already opened files.
Is_Regular_File : Boolean;
-- A flag indicating if the file is a regular file