Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <locale.h>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "");
- bool t = false;
- size_t temp;
- string str;
- char buf[2048];
- const char* substr = "Ваш IP";
- ifstream file;
- file.open("2.html");
- while (!file.eof()) {
- getline(file, str, 'n');
- ZeroMemory(buf, 2048);
- strcpy(buf, str.c_str());
- t = OemToAnsi(buf, buf);
- str = (string)buf;
- temp = str.find(substr);
- if (temp != string::npos)
- break;
- }
- file.close();
- cout << str << endl;
- Sleep(3000);
- return 0;
- }
Add Comment
Please, Sign In to add comment