Add way to extract numbers from the csv file
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "../Include/FileHelper.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
FileHelper::FileHelper() {};
|
||||
FileHelper::~FileHelper() {};
|
||||
|
||||
bool FileHelper::FileExists(char *path){
|
||||
struct stat s;
|
||||
|
||||
// Check if file exists, and if it isn't a folder.
|
||||
if (stat(path, &s) == 0 && !(s.st_mode & S_IFDIR)){
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user