FILEINFO@

Platform

x64, Win32

Purpose

To get information about a specified file.

Syntax

SUBROUTINE FILEINFO@(PATH, MODE, DEV, RDEV, NLINK, SIZE, ATIME, MTIME, CTIME, ERROR_CODE)
CHARACTER (LEN=*) PATH
INTEGER (KIND=2) MODE, DEV, RDEV, NLINK, ERROR_CODE
INTEGER (KIND=3) SIZE, ATIME, MTIME, CTIME

Description

Returns information about the file specified by PATH. This routine can be used to return the size of a file in SIZE and the date and time that the file was last accessed in ATIME. The returned value of ATIME can then be supplied to TOTIME@, TOEDATE@ etc.. Similarly MTIME is the last write time and CTIME is the time of creation. ERROR_CODE is returned as zero if the process is carried out successfully, otherwise ERROR_CODE returns a system error code.

File sizes that are greater than or equal to 2147483647 are returned as 2147483647.
The routine FILEINFO8@ has the same arguments except that SIZE is declared as REAL*8.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited