Sorry the / was a typo.
I have two txt files to process:
One is bad and one is good.
Good one:
123456789|Smith|John|freshman|15|4.0
987654321|Doe|Joe|sophomore|35|3.9
846834676|Wang|Chin|senior|95|3.7
957654321|Russell|June|junior|75|3.5
957654320|Russell|Harold|senior|195|3.2
456789321|Ortiz|Juan|freshman|25|3.8
987123456|Wade|Warren|sophomore|56|2.5
578315853|Ellis|Anita|sophomore|45|3.8
Bad one:
123456789|Smith|John|freshman|15|4.0
987654321|Doe|Joe|sophomore|35|3.9
248615937|Doe|Jane|senior|35|3.9
846834676|Wang|Chin|senior|95|3.7
9jtd85765|Duval|Janice|senior|100|3.7
957654321|Russell|June|junior|75|3.5
957654320|Russell|Harold|senior|195|3.2
456789321|Ortiz|Juan|freshman|25|3.8
519372486|Fields|Alice
987123456|Wade|Warren|sophomore|56|2.5
578315853|Ellis|Anita|sophomore|45|3.8
So I was not given too much criteria on what to check for, only to check the "format." So, from the providd files, it appears an invallid format, would be one without all the proper field regardless of the characters, etc.
So how would I check? Maybe number of delimeters? i was also thinking that I could put it into the array, and then just delete it?
thanks for your help guys.