#include <fstream>
#include <sstream>
#include <iostream>
int main(){
std::string response = "";
std::ifstream file("/tmp/response.json");
std::stringstream buffer;
buffer << file.rdbuf();
response = buffer.str();
}'언어 > C, C++' 카테고리의 다른 글
| CMake, CMakeLists.txt 정리 (0) | 2024.02.19 |
|---|---|
| make, Makefile 정리 (0) | 2024.02.13 |
| [C++] stringstream (0) | 2024.01.02 |
| RapidJSON 정리 (0) | 2023.12.27 |
| json-c 정리 (1) | 2023.12.26 |
