in textdatei schrieben
-
überschrift: wie mache ich das habs vergessen und find keinen sourcecode mehr
-
#include <fstream> .... ofstream dat_aus; dat_aus.open(testname.c_str,ios::out); dat_aus<<????;So???
-
ty
-
Sascha081088 schrieb:
#include <fstream> #include <string> std::string testname = "..."; std::ofstream dat_aus; dat_aus.open(testname.c_str ()); // ios::out ist implizit für ofstream, c_str ist eine MethodeSo!

-