Add way to extract numbers from the csv file
This commit is contained in:
+12
-3
@@ -1,9 +1,18 @@
|
||||
#include "../Include/FileReader.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
||||
FileReader::FileReader() {};
|
||||
FileReader::~FileReader() {};
|
||||
|
||||
char *FileReader::Read(){
|
||||
return nullptr;
|
||||
std::string FileReader::GetFile(char *path){
|
||||
std::ifstream file(path);
|
||||
|
||||
std::string line;
|
||||
|
||||
std::getline(file, line);
|
||||
|
||||
file.close();
|
||||
|
||||
return line;
|
||||
}
|
||||
Reference in New Issue
Block a user