nline {mmapcharr}R Documentation

Number of lines

Description

Number of lines of a file.

Usage

nline(file)

Arguments

file

Path to file.

Value

The number of lines of the file.

Examples

tmpfile <- tempfile()
write(1:5, tmpfile, ncolumns = 1)
nline(tmpfile)

[Package mmapcharr version 0.3.0 Index]