[#BloombergLP-balxml-Reader-getLineNumber]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Reader.adoc[Reader]::getLineNumber
:relfileprefix: ../../../
:mrdocs:

Return the current line number within the input stream&period; The current line is the last line for which the reader has not yet seen a newline&period; Lines are counted starting at one from the time a stream is provided to `open`&period; Return 0 if not available&period; Note that a derived&hyphen;class implementation is not required to count lines and may just return 0&period;

== Synopsis

Declared in `&lt;balxml&lowbar;reader&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int
getLineNumber() const = 0;
----


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