This is what's inside the .txt/.dat file :
First, I created 3 arrays,1534891, John Doe
6686914, Jane Mary
5854916, Kenny Wang
employeeID int array
employeeFirstName char array size 30
employeeLastname char array size 30
and we're required to load the data (Strings) from the file into the arrays created. I'm attempting the question now, started off with fopen and other functions to load the file.
I know:
- need loops to do this
- id and name is seperated with ', '
- next person is in next line, seperated by 'lf' or x0A in Hex from ASCII table
need some advise.