File
The File class extends the Stream class and provides a specialized implementation for managing files in a system. It offers functionality for opening, reading, writing, and closing files, along with managing the file status, position, and size. The class supports file operations using both file descriptors and file names, and it includes utilities for retrieving file status and performing manipulations.
#include <core/TellusimFile.h>
Inheritance
- Inherits from Stream
Constructors
File()
Methods
Open/close file.
bool open(const char *name, const char *mode)
bool open(const String &name, const char *mode)
bool open(int32_t fd, const char *name, const char *mode)
bool popen(const char *command, const char *mode)
bool popen(const String &command, const char *mode)
void close()
File utils.
static bool isFile(const char *name)
static bool isFile(const String &name)
static uint64_t getMTime(const char *name)
static size_t getSize(const char *name)
static bool remove(const char *name)