Question
Please write c++ programb, reading a file by using by creating a separate function then call that function in int main(), and file not found
Please write c++ programb, reading a file by using
text.txt
Midnights Taylor Swift 01 Snow on the Beach 02 You're on Your Own Kid 03 Question...? 04 Sweet Nothing 05 Maroon 06 Anti-Hero 07 Midnight Rain 08 Paris 09 Glitch 10 Karma Midnights Fearless Taylor Swift 01 Breathe 02 Change 03 Love Story 04 Hey Stephen 05 You're Not Sorry 06 Forever & Always Fearless FutureSex/LoveSounds Justin Timberlake 01 SexyBack FutureSex/LoveSounds
Output:
Enter file name: load
Enter file name: load text1.txt
No file text1.txt found
Enter file name: load text.txt export
Fearless
Taylor Swift
01 Breathe
02 Change
03 Love Story
04 Hey Stephen
05 You're Not Sorry
06 Forever & Always
Fearless
FutureSex/LoveSounds
Justin Timberlake
01 SexyBack
FutureSex/LoveSounds
Midnights
Taylor Swift
01 Snow on the Beach
02 You're on Your Own Kid
03 Question...?
04 Sweet Nothing
05 Maroon
06 Anti-Hero
07 Midnight Rain
08 Paris
09 Glitch
10 Karma
Midnights
Enter file name: exit
Thanks for entering!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started