Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <stdio.h>
- #include <windows.h>
- #include <conio.h>
- using namespace std;
- HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
- //SetConsoleTextAttribute(hConsole, (WORD)((10 << 4) | 15));
- int main() {
- system("color f0");
- system("chcp 1251");
- system("cls");
- FILE *f;
- char ch;
- car
- if ((f = fopen("D:/code.txt", "r")) == NULL) {
- cout << "Cannot open file.\n";
- }
- while((ch = fgetc(f)) != EOF) {
- //
- }
- cout << endl;
- fclose(f);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement