FileStream.h
// FileStream.h
//
// Author David Barrett-Lennard
// (C)opyright Cedanet Pty Ltd 2008
#pragma once
#ifndef Ceda_cxUtils_FileStream_H
#define Ceda_cxUtils_FileStream_H
#include "cxUtils.h"
#include "StreamInterfaces.h"
#include "xchar.h"
namespace ceda
{
// Open a file for writing
// Throws FileException if cannot open file stream successfully
// Never returns nullptr
// The stream must be explicitly closed. It should not be deleted
cxUtils_API ICloseableOutputStream* OpenFileOutputStream(ConstStringZ name, bool textMode);
} // namespace ceda
#endif // include guard