RosettaCodeData/Task/File-modification-time/Ring/file-modification-time.ring

10 lines
222 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
load "stdlib.ring"
see GetFileInfo( "test.ring" )
func GetFileInfo cFile
cOutput = systemcmd("dir /T:W " + cFile )
aList = str2list(cOutput)
cLine = aList[6]
aInfo = split(cLine," ")
return aInfo