1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
|
# include <iostream>
# include <fstream>
# include <string>
using namespace std;
string file;
string sign;
int main()
{
cout<<"|IRRS| >> ";
getline(cin, file); // Liest eine komplette Zeile ein
cout<<"|SIGN| >> ";
getline(cin, file);
ofstream IRRSD (file, ios::app);
IRRSD << sign;
IRRSD.flush(); // Datei buffer flushen
IRRSD.close(); // Datei schließen (nicht unbedingt notwendig)
getchar();
return 0;
} |