Truncating or Extending Files
An application can truncate or extend a file by calling SetEndOfFile. This function sets the end-of-file marker to the current position of the file pointer.
Note that when a file is extended, the contents between the old and new end-of-file locations are not defined.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for