docs

Home All functions Categories

vuFileSize(Filename)

vuFileSize(*CSTRING), CSTRING

Description

Returns the size of a file without opening it, ensuring that file dates and times are not affected.

Parameters

Parameter Data Type Description
Filename CSTRING(128) Fully qualified path and filename of the file

Returns

A null-terminated CSTRING containing the size of the file in bytes.

Example

LOC:Size     REAL
LOC:FileName = 'C:\Valutilities\Test.tps'

LOC:Size = vuFileSize(LOC:FileName)
MESSAGE('File size = ' & vuFileSize(LOC:FileName) & ' bytes')

Notes

Home All functions Categories