#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <clocale>
#include <fstream>
#include <string>
int main()
{
setlocale(LC_ALL, "Russian");
std::string temp;
const std::string str = "''";
std::ifstream infile("C:/dfdf/fil.txt");
std::ofstream outfile("C:/dfdf/output1.txt");
if (!infile.is_open()) {
std::cout << " не найден" << std::endl;
system("pause");
return 1;
}
while (!infile.eof())
{
std::getline(infile, temp);
if (!std::equal(temp.begin(), temp.begin() + str.size(), str.begin()))
outfile << temp << "\n";
}
infile.close();
outfile.close();
return 0;
}
function getFileSity(fileName) {
let request = new XMLHttpRequest();
request.open('GET', fileName, false);
request.send(null);
return JSON.parse(request.responseText);
}
let slovar = getFileSity('slovar.json');