Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
rehtiLib/assets/reader/src/Utils.cpp File Reference
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include "Utils.hpp"
#include "../../Config.hpp"
Include dependency graph for rehtiLib/assets/reader/src/Utils.cpp:

Functions

void readMatrixFromFile (std::vector< std::vector< std::string >> &matrix, std::string filepath)
 Reads a matrix from a text file. Values should be separated by commas and rows by newlines. More...
 

Function Documentation

◆ readMatrixFromFile()

void readMatrixFromFile ( std::vector< std::vector< std::string >> &  matrix,
std::string  filepath 
)

Reads a matrix from a text file. Values should be separated by commas and rows by newlines.

Parameters
matrixEmpty matrix of strings that will be filled with the matrix information.
filepathPath to the file.
Returns
Nothing, but fills the matrix.
Here is the caller graph for this function: