0
How do I get the fstream to work?
Iâm a complete noob to programming in c++. I was wondering if anybody knows how to make an fstream work properly? Does the fstream âsummonâ up the text editor file open somehow? I tried following my teacherâs example from class but it doesnât seem to be working for me.
3 Answers
+ 1
Do you understand cin/cout? Cin/cout are basically special instances of fstreams mapped to standard in an standard out files, which are, in turn, mapped to the screen.
fstream create custom versions of cin/cout that read from named files.
0
like putting in commands such as inFile.open(pathName,ios::in)?