Public feed #377554

Stuff

public cpp v1 · immutable
Raw Edit
·published 2007-03-01 21:11 UTC
rendered paste body
#include <fstream>#include <iostream>using namespace std;int main(){        ofstream filehandler("testdatei.txt"); //geht auch per filehandler.open(..)        ifstream bla;        char fileline[101];        filehandler << "dieser Text steht in der Datei\n" << endl;        filehandler.close();        bla.open("testdatei.txt");        while(bla.getline(fileline, sizeof(fileline)))        {                cout << fileline;        }        cout << endl;        return 0;}