Answers for "c++ read file to char buffer"

C++
1

c++ read file to char buffer

std::ifstream in("FileReadExample.cpp");
std::string contents((std::istreambuf_iterator<char>(in)), 
    std::istreambuf_iterator<char>());
Posted by: Guest on July-29-2021

Browse Popular Code Answers by Language