Initial commit for WordsSorting

This commit is contained in:
BackIsBachus
2021-05-05 15:34:09 +02:00
commit d9cd489a0e
11 changed files with 833 additions and 0 deletions

20
WordsSorting/FileTools.h Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <vector>
#include <string>
using namespace std;
class FileTools
{
public:
/*
* brief: Read the file provided and store each word/line in the output
*/
static void ExtractWordsFromFile(const string& iFilePath, vector<string>& oWords);
/*
* brief: Save the porcessed words to an output file
*/
static void SaveRseult(const vector<string>& iWords, const string& iPath, bool isReverse);
};