diff options
Autocommit at 30.05.2022 @ 18:57
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | src/Models/Table.cpp | 9 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index 132559f..9403696 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -4,6 +4,15 @@ #include "CellString.h" #include "CellFormula.h" #include <cstring> +#include <fstream> +#include <exception> + +Table::Table(const char* filePath) { + std::ifstream inFile(filePath); + if (inFile.is_open()) + throw new std::logic_error("Could now open file!"); + cells = List<List<Cell*>>(); +} Table::Table(unsigned rows, unsigned cols) { if (rows == 0 || cols == 0) |
