I have started working on the changes below I do not know how to properly Implement them and I need help with doing so everything I've done so far is in the link at the very bottom the instructions start below The code is to long to put in the text box so I linked it I just need help with finishing The process of writing my readEmpFromFile function and than implementing a load command that allows us to utilize it And nothing else questions 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). 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).
I have started working on the changes below I do not know how to properly Implement them and I need help with doing so everything I've done so far is in the link at the very bottom the instructions start below
The code is to long to put in the text box so I linked it I just need help with finishing The process of writing my readEmpFromFile function and than implementing a load command that allows us to utilize it
And nothing else questions 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).
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/A_nCgdiaSj
Step by step
Solved in 2 steps