[#AutoFile-Truncate]
= xref:AutoFile.adoc[AutoFile]::Truncate
:relfileprefix: ../
:mrdocs:

Wrapper around TruncateFile()&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Truncate(unsigned int size);
----

== Return Value

True if the file was successfully truncated, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *size*
| New size of the file in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
