www.delorie.com/gnu/docs/gcc/g77_633.html   search  
 
Buy the book!


Using and Porting GNU Fortran

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

15.3.50 Default to Console I/O

The default I/O units, specified by `READ fmt', `READ (UNIT=*)', `WRITE (UNIT=*)', and `PRINT fmt', should not be units 5 (input) and 6 (output), but, rather, unit numbers not normally available for use in statements such as OPEN and CLOSE.

Changing this would allow a program to connect units 5 and 6 to files via OPEN, but still use `READ (UNIT=*)' and `PRINT' to do I/O to the "console".

This change probably requires the libg77 project.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003