Fix default category file
Logic to read lines from a file is a separate function