mirror of
https://github.com/SunnyQjm/MIRCertificationManager.git
synced 2026-06-03 08:16:49 +08:00
15 lines
282 B
C++
15 lines
282 B
C++
//
|
|
// Created by mingj on 2020/5/30.
|
|
//
|
|
|
|
#include "FileUtils.h"
|
|
#include <fstream>
|
|
#include <sstream>
|
|
|
|
std::string FileUtils::readFile2String(const std::string &filename) {
|
|
std::ifstream ifile(filename);
|
|
std::stringstream ss;
|
|
ss << ifile.rdbuf();
|
|
return ss.str();
|
|
}
|