|
|
|
|
- Operating mode in Windows Vista (and later)
<DiskFile variable>.ChangeSize (Function) In french: <Variable FichierDisque>.ChangeTaille Resizes an external file.
MyFile is DiskFile // Open an external file MyFile = fOpen("C:\MyDirectories\File.txt", foReadWrite) IF NOT ErrorOccurred THEN // Change size Res = MyFile.ChangeSize(200) ... END
Syntax
<Result> = <File used>.ChangeSize(<New file size>)
<Result>: Boolean - True if the change of size was performed,
- False otherwise.
<File used>: DiskFile variable Name of the DiskFile variable initialized with fOpen or fCreate.
<New file size>: Integer New size of the file in bytes. - The file is truncated if the new size is less than the initial size.
- The file is enlarged if the new size is greater than the initial size: the content between the former size and the new size is not defined.
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|