CppPatterns-Patterns icon indicating copy to clipboard operation
CppPatterns-Patterns copied to clipboard

Samples showing read of whole streams

Open DarkerStar opened this issue 9 years ago • 1 comments

I added two new samples in the "input" category, both showing how to read the entire contents of an input stream into a variable in one shot.

  • read-text-stream shows how to read the contents of a stream into a string. It's mainly intended for text input.
  • read-binary-stream shows how to read the contents of a stream into an arbitrary container. It's mainly intended for non-text (binary) input.

DarkerStar avatar Feb 27 '16 13:02 DarkerStar

Updated PR to current repo structure and style.

DarkerStar avatar Apr 10 '18 17:04 DarkerStar