fileInfo

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
String library
Math library
Regular expression lib.
File library
   fileClose
   fileCopy
   fileDelete
   fileDelDir
   fileEof
   fileFlush
   fileInfo
   fileLocate
   fileMakeDir
   fileOpen
   fileRead
   fileReadLine
   fileReadPos
   fileRename
   fileTempName
   fileWrite
   fileWriteLine
   fileWritePos
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  
fileInfo(
  const filename)  // name of file queried

Returns detailed information about a file:

  • The size of the file in bytes
  • The last access date/time as YYYYMMDDHHMMSS
  • The last modification date/time
  • The creation date/time
  • The full filename

You can extract the parts with strWords, but take in mind there may be filenames containing spaces.

Example:

fileInfo('test.txt');
// '125 19980205142536 19980205122807 19980205121355 F:\IBKProj\Csl\test.txt'
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>