std::ofstream

Benjamin Kosnik bkoz@redhat.com
Wed Jul 18 11:26:00 GMT 2001


> #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



More information about the Libstdc++ mailing list