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

ofstream in builder 6

Status
Not open for further replies.

michaelcristofaro

Programmer
Apr 28, 2003
1
AU
when i create an instance of ofstream as a global varible i get an error but if i create an instance of ifstream it is ok here is an eg


//includes
TForm1* Form1;
ofstream out; //error

what can i do about this
 
Off the top of my head I can think of two things to look for. Make sure your are including the correct header file(e.g., #include <fstream>). Next use
Code:
std::ofstream out
.

If these don't help, post the exact error you are getting.

Good luck.

James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top