in reply to Re: How do I pre-extend a file to a specified sizein thread How do I pre-extend a file to a specified size
Actually, setting the length greater than the actual file size is undefined behavior.