runtime/cpp/src/storage/FileHandle.cpp
//  SINK FILE HANDLE (binary file access)

SINK FILE HANDLE (binary file access)
SINK FILE HANDLE ( binary file access )
SinkFileHandle::SinkFileHandle (std::string path, CodecFormat fmt) : FileHandle(fmt)
{
  file_.exceptions (std::ofstream::failbit | std::ofstream::badbit );
  try {
    file_.open (path, std::ios::out | std::ios::binary );
  }
  catch (std::ofstream::failure e) {
    throw e;
  }
}
SinkFileHandle :: SinkFileHandle ( std :: string path , CodecFormat fmt ) : FileHandle ( fmt ) { file_ . exceptions ( std :: ofstream :: failbit | std :: ofstream :: badbit ) ; try { file_ . open ( path , std :: ios :: out | std :: ios :: binary ) ; } catch ( std :: ofstream :: failure e ) { throw e ; } }
SINK FILE HANDLE (binary file access)
SINK FILE HANDLE ( binary file access )