Index: trunk/thirds/otb2zcfg/otb2zcfg.cxx
===================================================================
--- trunk/thirds/otb2zcfg/otb2zcfg.cxx	(revision 552)
+++ trunk/thirds/otb2zcfg/otb2zcfg.cxx	(revision 555)
@@ -130,5 +130,5 @@
     for (std::vector<std::string>::const_iterator it = list.begin(); it != list.end(); ++it){
       std::string filename= *it + ".zcfg";
-      std::ofstream out(filename);
+      std::ofstream out(filename.c_str(),std::ofstream::out);
       std::streambuf *coutbuf = std::cout.rdbuf();
       std::cout.rdbuf(out.rdbuf());
