-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencryption.h
More file actions
29 lines (22 loc) · 1.13 KB
/
Copy pathencryption.h
File metadata and controls
29 lines (22 loc) · 1.13 KB
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
#ifndef ENCRYPTION_H
#define ENCRYPTION_H
#include<iostream>
#include<string>
using namespace std;
class Encryption
{
public:
void encryptFile(); //Deals with encrypting file by shifting each letter three spaces
void decryptFile(); //shifts each letter of a file by three letters back
void readFile(); //reads a file
void chooseFile(string filename); //takes the files name checks if it is valid
void append(); //choice to add writing to a file
bool checkFile(string filename); //checks if the file is a valid name or exists
void showChoices(); //shows the menu of choices
void clearFile(); //clears contents of file
string getFileName(); //returns the name of the file
private:
string file_name; //holds the variable name for reading and wiritng
string input; //holds files name
};
#endif // ENCRYPTION_H