The node you are looking for is at gnat_rm/the_implementation_of_standard_i_o reading-and-writing-non-regular-files-1.