|
FileSize
int
FileSize(string
filename)
Return
Value
Returns the size of the file in bytes.
Returns FAIL if the file does not exist.
Parameters
filename
– the name of
the file.
Remarks
Call this
function to get the file size in bytes.
Package
Plug in module:
nd_fileplg.npl
Example
The following
example demonstrates the use of FileSize.
# Example for FileSize
WriteString("C:\dummy.txt",
"Remove test")
CloseFile("C:\dummy.txt")
Println("The
size of the file=",FileSize("C:\dummy.txt"))
RemoveFile("C:\dummy.txt")
Output of the example
script:
The size of the file=13
|