I have a very big .txt file (9 MB). In it the words are stored like this :
да 2337093
е 1504540
не 1480296
се 1212312
Similar to below sample
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> strings;
ifstream file("path_to_file");
string line;
while (getline(file, line))
strings.push_back(line.substr(0, line.find(" ")));
// Do whatever you want with 'strings' vector
}