Question: Please USE C + + Create a text file of any song you like and save the file as song.txt . The file should contain
Please USE C
Create a text file of any song you like and save the file as song.txt The file should contain at least two hundred characters and should be located under the current directory.
Create a program code fileRead.c which will do:
a Open song.txt file if the file does not exit, it should display an error message
b Read from song.txt using "read system call function
c Count how many characters in that file
d Display the text it read between parenthesis
e Display the total number of characters read
f Close the song.txt file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
