projects/virtual_memory_manager/include/writer.hpp
// Constructor. Initializes the writer. Will
// throw an exception if path can't be oppened
Constructor. Initializes the writer. Will
throw an exception if path can't be oppened
Constructor . Initializes the writer . Will throw an exception if path can ' t be oppened
Writer(std::string path, Timer<std::chrono::milliseconds> *timer) : timer(timer)
    {
        outputFile.open(path);
        if (!this->outputFile.is_open())
            throw std::runtime_error("ERROR: Could not open output file");
    }
Writer ( std :: string path , Timer < std :: chrono :: milliseconds > * timer ) : timer ( timer ) { outputFile . open ( path ) ; if ( ! this -> outputFile . is_open ( ) ) throw std :: runtime_error ( " " ) ; }
Constructor.
Constructor .