Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <iomanip>
- #include <fstream>
- #include <string>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- char a[11]={'h','e','l','l','o','t','h','e','r','e'};
- ofstream Shkruaj("D:/DELVINI/informatika.txt");
- Shkruaj <<a<<endl;
- cout <<"Te dhenat u shkruan me sukses"<<endl;
- cout <<"\nFjali qe gjendet ne fajll";
- string shkrimifinal;
- ifstream Lexo("D:/DELVINI/informatika.txt", ios::in);
- while (!Lexo.eof())
- {
- Lexo >> shkrimifinal;
- cout <<shkrimifinal;
- }
- cout <<"Leximi perfundoi"<<endl;
- cin.get();
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement