I'm using the FILEINFO@ subroutine to return the size and time values. In the documentation it mentions using TOTIME@ and TODATE@ to then turn the times/dates into characters. However when i do so, I get the following errors:
Only CHARACTER variables can be assigned to CHARACTER variables, found REAL(KIND=1) C:\test\test\FreeFormat1.F95 12
Only CHARACTER variables can be assigned to CHARACTER variables, found REAL(KIND=1) C:\test\test\FreeFormat1.F95 13
Am I doing something wrong in the sample below?
WINAPP
PROGRAM Test
CHARACTER(LEN=8) myDate
CHARACTER(LEN=8) myTime
CHARACTER(LEN=20) PATH
INTEGER (KIND=2) MODE, DEV, RDEV, NLINK, ERROR_CODE
INTEGER (KIND=3) SIZE, ATIME, MTIME, CTIME
PATH = 'C:\\CalInstall.log'
Call FILEINFO@(PATH, MODE, DEV, RDEV, NLINK, SIZE, ATIME, MTIME, CTIME, ERROR_CODE)
myDate = TODATE@(ATIME)
myTime = TOTIME@(ATIME)
END PROGRAM Test