Is it possible to use >> and fprintf to access the same file? The fstream is passed to a function. I use outFile >> to write to it. Then I want to use fprint to write to it. I do this because the formatting I created originally to screen and looking for a quick convert. Not too familiar with printf cmds. Not sure why the fprint will not write to file, cuz it's open already?
1 2 3
//files to be read and written
fstream fsInputFile,
outFile;