Read a file line-by-line to find how far its header extends, and return it.

find_header(fqfn)

Arguments

fqfn

Fully qualified filename, character

Value

The header as a character vector.

Note

Headers are defined as consecutive lines beginning with "#" at the top of a file.

Author

Alexey Shiklomanov