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: 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
Get step-by-step solutions from verified subject matter experts
