Initial commit for WordsSorting
This commit is contained in:
20
WordsSorting/FileTools.h
Normal file
20
WordsSorting/FileTools.h
Normal 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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user