Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File output question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a questions about file output.
1. How do I pass an outFile to a function that will write to the file?Do I open it before I pass it or open it in the Write function? ex. OutFile.open("Blah");
ex. void main()
{ ofstream OutFile;
}
 
you can open the ofstream file outside the function.
and pass the ofstream object as reference to this function...
so you will be able to update it inside this function... Issahar Gourfinkel
senior software engineer
Israel

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top