Sorry about the last structure post. I was trying to just load the structure and go from there, but it was a very poor example.
The program attached compiles with no errors and no warnings. Basically I am trying to load the class.dat file into a structure. The class.dat file is delimited by a pipe "|".
001635223|Stevens, Bill R.|COSC1400| |004760097|Smith, William O.|COSC1401| |006238033|Smithson, Thelma R.|ITSC1401| |
I have tried several ways to load this file into the "student" structure. The attached code is the closest that I have come. I sent the data to a report.dat file just to view the output and this is what it looks like:
001-63-5223 Stevens, Bill R COSC140 | |
047-60-097| mith, William OCOSC140 | |
062-38-033| mithson, Thelma RITSC140 | |
103-54-130| oodsen, Richard UITSC140 | |
The pipes are still there and the data is corrupted. I AM LOST!
Could anyone please help clarify my error(s)? If you know a better way, please give a brief example.