[#AutoFile-2constructor-05]
= xref:AutoFile.adoc[AutoFile]::AutoFile
:relfileprefix: ../
:mrdocs:

Construct a wrapper taking ownership of `file`, optionally obfuscating its data&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
AutoFile(
    FILE* file,
    xref:Obfuscation.adoc[Obfuscation] const& obfuscation = &lcub;&rcub;);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file*
| C file handle to take ownership of&semi; may be nullptr&period;
| *obfuscation*
| XOR key applied to data as it is read or written&period;
|===


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