#include <file.h>
◆ FileWriter()
Opens a file for writing.
- Parameters
-
path | Path to the file. |
source | Source to which the file will be written. |
◆ ~FileWriter()
tram::FileWriter::~FileWriter |
( |
| ) |
|
Closes the file for writing.
◆ is_open()
bool tram::FileWriter::is_open |
( |
| ) |
|
Checks if a file was opened for writing.
◆ write()
void tram::FileWriter::write |
( |
const char * |
data, |
|
|
size_t |
length |
|
) |
| |
Writes to a file.
- Note
- This will completely overwrite the file contents.
- Parameters
-
data | Data which will be written to the file. |
length | Length of the data, in bytes, pointed to by data parameter. |
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/platform/file.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/platform/file.cpp