Add error checking bufio scanner (just in case)

pull/2/head
Jean-Marc MEESSEN 4 years ago
parent ab925ad2dd
commit 747e769761

@ -72,6 +72,10 @@ func loadFile() {
txtlines = append(txtlines, scanner.Text())
}
if error := scanner.Err(); error != nil {
log.Fatal(error)
}
file.Close()
regexpLineComment, _ := regexp.Compile("^#")

Loading…
Cancel
Save