I split the file into lines using a tokenizer:
.split().tokenize("\n", 1)
However, some of the files I need to process will contain a header line, which should be handled differently with regular lines. Is there an easy way to read the first line, the process, and then split the remaining lines?
source share