12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Descriptions of the Library Routines 2Symbolic name Constant Description NotesS_IROTH O'0000004' Other’s read permission Same as S_IRUSR on WindowssystemsS_IWOTH O'0000002' Other’s write permission Same as S_IWUSR on WindowssystemsS_IXOTH O'0000001' Other’s execute permission Same as S_IXUSR on WindowssystemsSYSTEMSTAT returns the same information as FSTAT, but accesses files by name instead of external unitnumber.On Windows systems, LSTAT returns exactly the same information as STAT. On Linux systems,if the file denoted by name is a link, LSTAT provides information on the link, while STATprovides information on the file at the destination of the link.You can also use the INQUIRE statement to get information about file properties.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “GETFILEINFOQQ”, the INQUIRE statement in the Language <strong>Reference</strong>ExampleUSE IFPORTCHARACTER*12 file_nameINTEGER(4) info_array(12)print *, 'Enter file to examine: 'read *, file_nameISTATUS = STAT (file_name, info_array)if (.not. istatus) thenprint *, info_arrayelseprint *, 'Error = ',istatusend ifendPortability Function: Sends a command to the shell as if it had been typed at the command line.Module: USE IFPORT2-477

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!