I need to read the contents of a file. The file contains the names various foods and information regarding portions:
Name: Portions:
APPLE JUICE, CANNED 1 CUP
APPLE PIE 1 PIE
How can I read the entire name of a food item without including the portions?