-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathText_Editor.h
46 lines (44 loc) · 1.09 KB
/
Text_Editor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CLION_TEXT_EDITOR_H
#define CLION_TEXT_EDITOR_H
#endif //CLION_TEXT_EDITOR_H
#include <iostream>
#include <fstream>
#include<istream>
#include <string>
#include <vector>
#include <cctype>
#include <algorithm>
//__________________________________________________________
using namespace std;
//__________________________________________________________
void add_text();
void encrypt();
void empty_file();
void decrypt_file();
void display_file();
void mergeFiles();
void countWords();
void countCharacters();
void countLines();
void searchForWord();
void countNumTimesWord();
void turnUpper();
void turnLower();
void firstCaps();
void save();
//__________________________________________________________
string toLower(string word){
string temp;
ifstream myFile("dataFile.txt");
for (int i = 0; i < word.length(); ++i) {
if(isalpha(word[i])){
word[i] = tolower(word[i]);
}
}
return word;
}
//__________________________________________________________
fstream myFile;
fstream myFile2;
char filename[81];
//__________________________________________________________