If you are sure there are no commas in your input, other than to separate the category, you can read the file line by line and split on ,, then push the result to List
That said, it looks like you are looking at a CSV file, so you might consider using the modules for it