Are you asking how to parse the five fields from a line of text? If so, how would you determine the end of one field, and the start of another? What if there's four fields? Six fields?
Are you asking how to specify certain elements of a structure are "bad"? What type of a structure (hash, array, something else) are you using?