20 file_size = std::filesystem::file_size(
path);
21 stream.open(
path, std::ios::in | std::ios::binary);
28 std::cout <<
"FileConnector::open_file(): Error opening file!" << std::endl;
33 std::cout <<
"FileConnector::open_file(): Path argument is empty!" << std::endl;
48 stream.read(buffer, data_size);
52 if (file_size - pos < data_size)
58 void FileConnector::reset_file()
62 stream.seekg(0, std::ios::beg);
void read_data(char *buffer, size_t data_size)
std::filesystem::path path