[#BloombergLP-balst-Resolver_FileHelper-openFile]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/Resolver_FileHelper.adoc[Resolver&lowbar;FileHelper]::openFile
:relfileprefix: ../../../
:mrdocs:

Open the file referred to by the specified `fileName` for read&hyphen;only access, and if it opens successfully, set `d&lowbar;reader` to a `FileReader` type and bind it to the opened file&period; Return 0 on success and a non&hyphen;zero value otherwise&period;

== Synopsis

Declared in `&lt;balst&lowbar;resolver&lowbar;filehelper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
openFile(char const* fileName);
----


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