Gets information about the specified file. Returns null if the file does not exist.
C#
fiFileInfo = GetFileInfo (sName [, fsuFileSizeUnit]);
VB
fiFileInfo = GetFileInfo (sName [, fsuFileSizeUnit])
| Variable | Description |
|---|---|
| fiFileInfo | Information about the file. Null if the file does not exist. FileInfo. |
| sName | The path to the file. Can be either an absolute path or a path relative to the current working directory. String. |
| fsuFileSizeUnit | Optional: The unit in which the file size is measured. Defaults to FileSizeUnit.Byte. FileSizeUnit. |