Initial commit

This commit is contained in:
Michael Reber
2019-11-15 12:59:38 +01:00
parent 40a414d210
commit b880c3ccde
6814 changed files with 379441 additions and 0 deletions
@@ -0,0 +1,20 @@
File example using fstream.h functions
#include<iostream.h>
#include<fstream.h>
int main()
{
// first lets output to a file
ofstream fout("sample.txt");
fout << "WWW" << endl;
fout.close();
char str[20];
//read in the file
ifstream fin("sample.txt");
fin >> str;
fin.close();
//display sample.txt contents
cout << "data read from file: " << str << endl;
return 0;
}