Truncate a file: Difference between revisions

Content added Content deleted
Line 969: Line 969:
.LoadFromFile(fpath)
.LoadFromFile(fpath)
'check if the specified size is larger than the file content
'check if the specified size is larger than the file content
If n < .Size Then
If n <= .Size Then
content = .Read(n)
content = .Read(n)
Else
Else