Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Get the file pointer associated with a Fortran logical unit

Intel_C_Intel
Employee
643 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
643 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