FileStream: SetLength

SetLength

Sets the length of the stream to the specified length.



 Public Sub SetLength(
	  ByVal Value As Currency )

Parameters

Value
[ByVal] Currency. The length of the new file in bytes.

Remarks

If the new value is less than the origin file, then the file will be truncated. If the new value is larger than the original, then the newly exposed bytes are of undefined value.

The stream must have Seek and Write support

See Also

Project CorLib Overview

Class FileStream Overview