add line validator overloads to scanTextFile methods

can be used to exclude lines of text from the output and/or perform parsing