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:

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!