1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
11 #ifndef _FILE_STREAM_H
12 #define _FILE_STREAM_H
16 #include "PositionIOStream.h"
18 /*! \brief DataStream implementation that writes directly to a file.
20 class FileStream
: public PositionIOStream
{
22 FileStream(const char *path
, uint32 open_mode
);
23 virtual status_t
InitCheck() const;
24 void Flush() { fFile
.Sync(); }
30 #endif // _FILE_STREAM_H