How to copy binary data from one stream to another?

后端 未结 1 412
离开以前
离开以前 2021-01-05 17:39

Currently i have a program that loads binary data into a stringstream and then pases the data to a fstream like so:

stringstream ss(stringstream::binary | st         


        
1条回答
  •  广开言路
    2021-01-05 18:07

    Use the streambuf members, that's what they are for:

    fout << ss.rdbuf();
    

    0 讨论(0)
提交回复
热议问题