This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: std::ofstream


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]