So I'm wondering the difference and if either is better because I've seen both in tutorials
Ifstream Example
Example.open("file.txt")
Ifstream Example("file.txt")
Am I mistaken or do you no longer need to open and close a file with the second? If you do then do you just re type it or what?
Ifstream Example
Example.open("file.txt")
Ifstream Example("file.txt")
Am I mistaken or do you no longer need to open and close a file with the second? If you do then do you just re type it or what?


