Skeleton for parsing a text file