Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ read file to char buffer

std::ifstream in("FileReadExample.cpp");
std::string contents((std::istreambuf_iterator<char>(in)), 
    std::istreambuf_iterator<char>());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #file #char #buffer
ADD COMMENT
Topic
Name
8+1 =