-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScrivener.h
32 lines (27 loc) · 911 Bytes
/
Scrivener.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
//
// Created by Slayton on 11/21/2017.
//
#ifndef THECONLANGCOMPILER_SCRIVENER_H
#define THECONLANGCOMPILER_SCRIVENER_H
#include <vector>
#include <iostream>
#include <fstream>
#include <direct.h>
#include <map>
using namespace std;
class Scrivener {
public:
Scrivener();
vector<string> readFileToStringVector(string fileName); /*
* readFileToStringVector(string fileName) ----- takes in a string and checks
* if there exists a file in the local directory with that name, if so,
* copies the contents of the file to a string vector and returns it.\
*
< Requires: Filename with proper .txt and existing file.
< Modifies: Nothing
< Effects: Returns a string vector
*/
void writeStringVectorToFile(string fileName, vector<string> rawLines);
static vector<string> split(string line, char splitChar);
};
#endif //THECONLANGCOMPILER_SCRIVENER_H