Question: Write a complete (with all necessary declaration) function called loadMyIncome that: 1. requires an argument as a char pointer to the file name. 2. The

Write a complete (with all necessary declaration) function called loadMyIncome that: 1. requires an argument as a char pointer to the file name. 2. The function must open the file named in the argument for reading, 3. Must insure that the file was opened successfully. 4. Must read the file line by line using "fscanf ' storing the read data in char array called myLine assuming that no line is longer that 80 characters (some may be exactly 80 characters long) 5. Must continue reading until it encounters the end of file. 6. Write a main that called this function and reads the file generated in part 1 above and print every part read after each scan on a separate line. 7. Explain why the outputs are different
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
