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

 Write a complete (with all necessary declaration) function called loadMySongsList that:

Write a complete (with all necessary declaration) function called loadMySongsList that: b. requires an argument as a char pointer to the file name. c. The function must open the file named in the argument for reading. d. Must insure that the file was opened successfully. e. Must read the file line by line using "fgets" storing the read data in char array called songBuff assuming that no song name is longer that 132 characters (some maybe exactly 132 characters long) f. Must continue reading until it encounters the end of file. g. You must include a main that calls the loadMySongsList and display the results. h. Your program must not cause any memory leaks

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!