Changes the length of the file.
impl File {
fn set_len(&self, len: i64) -> Result<(), Errno>
}| Name | Description |
|---|---|
| len | The new length of the file. |
If the length is larger than the current length, a hole is created. Such holes can be inspected with the seek method.