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

Read a null&hyphen;terminated string from `offset` in the file or mapped file into `writeSpan` and return a `string&lowbar;view` to the string&period; If we run out of room in `writeSpan`, reach end of file, or reach end of mapped area, return a non&hyphen;null&hyphen;terminated `string&lowbar;view`&period; The behavior is undefined unless `!outSpan&period;empty()` and `offset &gt;&equals; 0`&period; Note that the returned `string&lowbar;view` never contains the terminating `0`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string&lowbar;view
loadString(
    xref:BloombergLP/balst/Resolver_FileHelper.adoc[Span] const& writeSpan,
    xref:BloombergLP/balst/Resolver_FileHelper/Offset.adoc[Offset] offset) const;
----


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