I want to know how to read from a file. I have posted the first line of program.dat file before. There are more than one line in the file and i want to tokenize them and save them into different variables or pointers. Can anyone write full code how to do it. I did with strtok and it doesn't read last line. I used fgets to read each line of file
P0001|UG|Bachelor of Computer Science|Application Programming|BP094|3|FT|The Bachelor of Computer Science degrees develop a skill set that spans from theoretical and algorithmic foundations to cutting-edge developments in computing.|In this major, you will gain skills in developing practical coding solutions for the widest range of real-world problems using the latest software development skill sets.