Fix reading group file

File.read returns a string, and [0] was only getting the first
character, not the first line.