Can someone explain to me how to parse this text file into variable data I can use?
Kim,83,Junior
Jake,76,Senior
Erin,98,Senior
Ronald,69,Senior
Jim,83,Freshman
Kate,91,Sophomore
Steve,64,Freshman
Julie,89,Junior
Mark,75,Senior
Paul,81,Senior
Mike,56,Freshman
Meghan,97,Junior
Jason,67,Sophomore
Ling,88,Senior
Lori,70,Freshman
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
Use a streamreader object to read the file one line at a time.
Use the .Split(",") method to split each line into an array at the comma
Process as needed
Loop until you hit the end of the file.