fileName$="data.txt" 'create data file open fileName$ for output as #1 print #1, "data goes here" close #1 print "Time stamp for a file ";fileName$ print getFileStamp$(fileName$) function getFileStamp$(fileName$) dim info$(1,1) files DefaultDir$, fileName$, info$() if info$(0, 0) = "0" then getFileStamp$ = "File not found" else getFileStamp$ = info$(1, 2) end if end function
|