16 lines
278 B
C++
16 lines
278 B
C++
#include "../include/FileReader.h"
|
|
#include <string>
|
|
#include <fstream>
|
|
|
|
string FileReader::getFile(char *path){
|
|
ifstream file(path);
|
|
|
|
string line;
|
|
|
|
// There is only one line in the file
|
|
getline(file, line);
|
|
|
|
file.close();
|
|
|
|
return line;
|
|
} |