Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <stdio.h>
  4. #include <windows.h>
  5. #include <conio.h>
  6.  
  7. using namespace std;
  8.  
  9. HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
  10. //SetConsoleTextAttribute(hConsole, (WORD)((10 << 4) | 15));
  11.  
  12. int main() {
  13. system("color f0");
  14. system("chcp 1251");
  15. system("cls");
  16.  
  17. FILE *f;
  18.  
  19. char ch;
  20. car
  21.  
  22. if ((f = fopen("D:/code.txt", "r")) == NULL) {
  23. cout << "Cannot open file.\n";
  24. }
  25. while((ch = fgetc(f)) != EOF) {
  26. //
  27. }
  28. cout << endl;
  29. fclose(f);
  30. system("pause");
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement