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.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>MAKEDIRQQPortability Function: Creates a new directory with a specified name.Module: USE IFPORTSyntaxresult = MAKEDIRQQ (dirname)dirname(Input) Character*(*). Name of directory to be created.Results:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE..MAKEDIRQQ can create only one directory at a time. You cannot create a new directory and asubdirectory below it in a single command. MAKEDIRQQ does not translate path delimiters. Youcan use either slash (/) or backslash (\) as valid delimiters.If an error occurs, call GETLASTERRORQQ to retrieve the error message. Possible errorsinclude:• ERR$ACCES - Permission denied. The file’s (or directory’s) permission setting does notallow the specified access.• ERR$EXIST - The directory already exists.• ERR$NOENT - The file or path specified was not found.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “DELDIRQQ”, “CHANGEDIRQQ”, “GETLASTERRORQQ”ExampleUSE IFPORTLOGICAL(4) resultresult = MAKEDIRQQ('mynewdir')IF (result) THENWRITE (*,*) 'New subdirectory successfully created'ELSEWRITE (*,*) 'Failed to create subdirectory'END IFEND2-200

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

Saved successfully!

Ooh no, something went wrong!