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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File out

Status
Not open for further replies.

mayu03

Programmer
Oct 3, 2003
91
US
I have a function show where I have the
following statements:
cout<<lastname;
cout<<firstname;.....
I created a new function print where I wanted
to saves all data in file. Instead of typing in again
I would like to use the same function print:
print();
How do I write the output from function print in file?
fileout<<print() ; won't work
 
Hi mayu,

I dint really understand ur question...

But if it is file I/O that you want to do, I have written this FAQ... plz read it:

faq116-2516 How to do simple File I/O in C++

good luck!

In the sweat of thy brow shall you eat your bread.
-Bible

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top