21 lines
420 B
C++
21 lines
420 B
C++
#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);
|
|
};
|
|
|