Simple function reading file by line for the splitter task