string datname = "test.txt"; ofstream output(datname); output << "irgendwas";