hallo i am new in here, i have a homework for to morning. and i am greatly stuck
i have to make a program that reads a file with this information.
Susanne;Hansen;2010e
Christian;Hansen;2010e
Pernille;Hansen;2010a
Peter;Jensen;2010b
Hans;Thomsen;2010b
Pia;Petersen;2010a
Bodil;Lorentzen;2010e
Henrik;Steen;2010b
Sten;Hansson;2010e
and should make it to look like this
SH1;SH1DTU;2010e;Susanne;Hansen
CH2;CH2DTU;2010e;Christian;Hansen
PH3;PH3DTU;2010a;Pernille;Hansen
PJ4;PJ4DTU;2010b;Peter;Jensen
HT5;HT5DTU;2010b;Hans;Thomsen
PP6;PP6DTU;2010a;Pia;Petersen
BL7;BL7DTU;2010e;Bodil;Lorentzen
HS8;HS8DTU;2010b;Henrik;Steen
SH9;SH9DTU;2010e;Sten;Hansson
my question is how do i make it to stop reading at the ; points and storing the information to later use.
Ps. sorry for my bad english.
Daniel V.