5 #include <libutl/FDstream.h> 6 #include <libutl/Pathname.h> 59 ssize_t length()
const;
91 return seekStart(offset);
99 ssize_t seekCur(ssize_t offset);
106 ssize_t seekStart(ssize_t offset = 0);
113 ssize_t seekEnd(ssize_t offset = 0);
116 ssize_t tell()
const;
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
FileStream::open() : open in append mode.
FileStream::open() : create a new file.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
same as io_wr | fs_create | fs_trunc
ssize_t seek(ssize_t offset)
Seek to the given file offset.
void rewind()
Seek to the start of the file.
unsigned int uint_t
Unsigned integer.
const uint_t uint_t_max
Maximum uint_t value.
const ssize_t ssize_t_max
Maximum ssize_t value.
FileStream::open() : truncate existing file.
Stream with file descriptor.
fs_flags_t
FileStream flags.