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