d read the information from the file (reversing what writeEmpToFile does), create a new employee and fill in the data. If the FIL
Please read properly do not just send back random code that has nothing to do with what I need cuz that is not helpful
My question below
Implement a function readEmpFromFile that takes a FILE * as the only argument and returns a pointer to a struct employee. This function should read the information from the file (reversing what writeEmpToFile does), create a new employee and fill in the data. If the FILE has no more info (is at end of file), this function should return NULL. This function must also ensure any employee actually created (not the NULL) is added to the array (as is done in createEmployee).
The function called readEmpFromFile this function is different and should not to be mistaken with the function called readEmployee
Each of these functions does something different than one another
Change main to load employees from a file using a command called LOAD which is given to the program using (using your readEmpFromFile function you just wrote).,
https://onlinegdb.com/jYuB3gpCx
Step by step
Solved in 3 steps