[#BloombergLP-balst-Resolver_FileHelper-openFile] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/Resolver_FileHelper.adoc[Resolver_FileHelper]::openFile :relfileprefix: ../../../ :mrdocs: Open the file referred to by the specified `fileName` for read‐only access, and if it opens successfully, set `d_reader` to a `FileReader` type and bind it to the opened file. Return 0 on success and a non‐zero value otherwise. == Synopsis Declared in `<balst_resolver_filehelper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int openFile(char const* fileName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#