Sets the length of the file. This can be used to truncate or extend the length of the file. If the file is extended, the new segment is not guaranteed to be initialized to zeros.
auto f = File("foobar", FileFlags.writeEmpty); f.length = 42; assert(f.length == 42);
See Implementation
Sets the length of the file. This can be used to truncate or extend the length of the file. If the file is extended, the new segment is not guaranteed to be initialized to zeros.