Is it possible to set format of the output to file so I could write to file like printf writes to console?
printf("%s\\\n", "something");
std::ofstream myfile;
myfile.open ("somefile", ofstream::in | ofstream::out | ofstream::app); //debug
myfile << ""; // can I use somehow pattern like %s?