Answer the question
In order to leave comments, you need to log in
How to parse multiple text files to CSV (excel)?
There are a lot of standardized emails (I can save them with the same thunderbird in separate eml files). It is necessary to tear out data from the contents of these files by the mask "full name:", "email:" and put it into one file, excel is better, but in fact cvs is not bad either. This is how I dealt with php before (the parser made a simple one, in general I imagine what it is), but here it is necessary that there is a local program. I already thought about remembering the university and compiling a c++ binary for Windows, but for now I'll keep my head down ... Maybe there are ready-made tools in general to tear out the necessary data from an array of text files? Type to select a directory of source codes, to specify a mask on which to tear out the data - and voila. I don't really want to reinvent the wheel.
Answer the question
In order to leave comments, you need to log in
Frets, I don’t bother anyone, I put c ++ in netbeans, digging from old memory, like:
regex maskStr("^<strong>.*");
...
while (getline (inFile,line)) {
if ( regex_match(line, maskStr) ) {
sum = sum + x;
cout << line << '\n';
}
}
1. https://www.powergrep.com/manual.html#xmpcsv
2. https://github.com/retnek/emlextractor (PHP)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question