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 0" 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
 Please USE C++ Create a text file of any song you

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!