LineNumberReader is a buffered character-input stream that keeps track of line numbers. You can use LineNumberReader to read line by line any InputStream convertible object.

By default, UTF-8 encoding will be used to construct the reader but you can give and optional argument with charset name to change it.

# 1 Examples

Copy
<script>
var src  = new Ax.io.File("/etc/hosts");
var lnr = new Ax.io.LineNumberReader(src, "ISO-8859-1");
</script>