This commit is contained in:
Erik Fröjdh
2024-11-14 17:03:16 +01:00
parent 5cde7a99b5
commit 0d058274d5
2 changed files with 13 additions and 3 deletions

View File

@ -2,7 +2,7 @@
namespace aare {
ClusterFile::ClusterFile(const std::filesystem::path &fname) {
ClusterFile::ClusterFile(const std::filesystem::path &fname, size_t chunk_size): m_chunk_size(chunk_size) {
fp = fopen(fname.c_str(), "rb");
if (!fp) {
throw std::runtime_error("Could not open file: " + fname.string());