std::ofstream

Dean Hoover dhoover@rochester.rr.com
Wed Jul 18 11:48:00 GMT 2001


Benjamin Kosnik wrote:

> > #include <iostream>
> >
> > int main()
> > {
> >         std::ofstream file("xyz.out", std::ios::out|std::ios::app);
> > }
>
> > Am I in error somewhere?
>
> Yes: std::ofstream is in <fstream>. You'll need to include that file.
>
> -benjamin

thanks. that worked.



More information about the Libstdc++ mailing list