在頂部#include <fstream>
然後,在c盤建立一個txt檔案,把字尾名更改為.dat,并且命名mp3Decode.dat
//以二進制模式和在檔案尾追加的方式打開檔案
std::fstream f("c:\\mp3Decode.dat", std::ios::binary | std::ios::app);
//pDeFullBuf是一個BYTE[] *pDeFullBuf的指針,強制轉換為char *
//bDecFullLen是有效的資料長度
f.write((char*)pDeFullBuf, bDecFullLen);
//關掉流
f.close();