Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Command line/File folder info

Intel_C_Intel
Employee
740 Views
Someone is asking about moving some Fortran programs into Compaq Fortran. He has a library that works with Lahey that gets command line arguments and gets file/folder info.

Is there an easy way to get these items in Compaq Fortran?
0 Kudos
2 Replies
Steven_L_Intel1
Employee
740 Views
GETARG gets command line arguments. GETFILEINFOQQ can get file and folder info,

Steve
0 Kudos
larsm
Beginner
740 Views
In the new proposed Fortran standard (unofficially Fortran 2003) there is a standardized way of getting the command line arguments, for example subroutines "Get_command" and "Get_command_argument". You can download implementations of the "F2KCLI" module (Fortran 2K Command Line Interface) for a number of different compilers from, among others, www.winteracter.com/f2kcli/.
In this way you can start using the standard calls right away without having to wait for Fortran 2003.

I use F2KCLI myself for CVF and VMS Fortran.

There is nothing standardized for File folder info, though.

Lars M
0 Kudos
Reply