篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown C ++ i / o流相关的知识,希望对你有一定的参考价值。
//a line in file: A B C D
bsl::getline(istr, line);
bsl::stringstream lineStream;
lineStream << line;
lineStream >> c.tkr() >> c.shares >> c.dividend() >> c.numDivs();
### Basic usage:
```
#include <bsl_fstream.h>
bsl::ofstream outf(filename);
if (!outf.is_open())
```
* File reading mode:
* app
* ate: at end
* binary
* in
* out
* trunc: truncate: any current content is discarded
* bsl::ofstream outf(filename, bsl::ios::app)
* bsl::getline(filestream, str)