Get the number of lines of a file.
nlines(file)
file
Path of the file.
The number of lines as one integer.
tmp <- fwrite2(iris) nlines(tmp)