About
An output stream is used to write data to a resource defined with a maxon::Url. maxon::OutputStreamInterface is based on maxon::BaseStreamInterface.
Usage
maxon::BaseStreamInterface provides these simple functions:
- Note
- To append to the end of a file use the flags maxon::OPENSTREAMFLAGS::WRITE_DONT_TRUNCATE and maxon::OPENSTREAMFLAGS::SEEK_TO_END.
{
const maxon::OutputStreamRef stream = url.OpenOutputStream()
iferr_return;
}
if (isHTTP || isHTTPS)
{
const maxon::InputStreamRef inputStream = webFile.OpenInputStream()
iferr_return;
const maxon::OutputStreamRef outputStream = localFile.OpenOutputStream()
iferr_return;
}
Further Reading