text: //
  //  Utils.h
  //  ADVENT OF CODE 2021: Day 2 - Dive! (Part 2)
  //  
  //  Created by diff-arch on 02/12/2021.
  //
  
  #ifndef Utils_h
  #define Utils_h
  
  #include <vector>
  #include <string>
  #include <fstream>
  #include <stdexcept>
  
  /// \brief Reads a text file line by line.
  /// \returns the vector of individual lines
  std::vector<std::string> readData(const char* filepath);
  
  /// \brief Splits a string by a given delimiter.
  /// \param s:         a string to split
  /// \param delimiter: optional delimiter, by default whitespace
  /// \returns the vector of individual strings
  std::vector<std::string> split(std::string s, const std::string& delimiter=" ");
  
  #endif