Software Archive
Read-only legacy content
17061 Discussions

Get the file pointer associated with a Fortran logical unit

Intel_C_Intel
Employee
607 Views
On most unix Fortran compilers, it is possible to get the C's file pointer associated to a logical unit,
either directly (FSTREAM on HP-UX Fortran; GETFILEP on SunOS Fortran), or indirectly by getting
the unix file descriptor (GETFD on Compaq Unix Fortran; FNUM on GNU Fortran).
How to implement this feature in Compaq Windows and OpenVMS Fortran ?

I am looking forward to read your suggestions.
Thanks.

Michel K.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
607 Views
For our compilers on Windows and OpenVMS, there is no C file pointer associated with a Fortran unit - I/O is done using direct OS calls. You can use the USEROPEN feature to do your own file open and get the file handle (or on VMS, the FAB and RAB, though the RAB is accessible through DFOR$RAB. You can't do C I/O on these.

Steve
0 Kudos
Reply