MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / fileread

Function fileread

source/matplot/util/common.cpp:354–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 }
353
354 std::string fileread(const std::string &filename) {
355 std::ifstream t(filename);
356 if (!t) {
357 throw std::system_error(errno, std::system_category(), filename);
358 }
359 std::string str((std::istreambuf_iterator<char>(t)),
360 std::istreambuf_iterator<char>());
361 return str;
362 }
363
364 double cosd(double degrees) {
365 // 0 -> 0

Callers 5

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected