Definition at line 191 of file fs.cpp.hpp.
191 {
194 FL_WARN(
"Failed to open file: " << path);
195 return false;
196 }
197 fl::size size = file.
size();
199 bool wrote = false;
202 fl::size n = file.
read(buf,
sizeof(buf));
203 out->
append((
const char *)buf, n);
204 wrote = true;
205 }
207 FL_DBG_IF(!wrote,
"Failed to write any data to the output string.");
208 return wrote;
209}
fl::ifstream openRead(const char *path) FL_NO_EXCEPT
void reserve(fl::size newCapacity) FL_NO_EXCEPT
fl::size size() const FL_NO_EXCEPT
fl::size_t size() const FL_NO_EXCEPT
ifstream & read(char *buffer, fl::size_t count) FL_NO_EXCEPT
bool available() const FL_NO_EXCEPT
bool is_open() const FL_NO_EXCEPT
void close() FL_NO_EXCEPT
string & append(const bitset_fixed< N > &bs) FL_NO_EXCEPT
References fl::ifstream::available(), fl::ifstream::close(), FL_DBG_IF, fl::FL_NO_EXCEPT, FL_WARN, fl::ifstream::is_open(), openRead(), fl::ifstream::read(), and fl::ifstream::size().