-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibex_file.hh
More file actions
executable file
·32 lines (25 loc) · 1.25 KB
/
Copy pathlibex_file.hh
File metadata and controls
executable file
·32 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// -------------------------------------------------------------------------- //
// (c) Ali Silvester Balarabe [libex_file.hh] //
// -------------------------------------------------------------------------- //
#if !defined __cplusplus
#error "Non-C++ code shouldn't include libex_file.hpp"
#endif
#if !defined INCLUDED_LIBEX_FILE_HH
#define INCLUDED_LIBEX_FILE_HH
#include "libex_string.hh"
#include <fstream>
#include <string>
// -------------------------------------------------------------------------- //
namespace lx {
namespace file {
// -------------------------------------------------------------------------- //
// Functions
inline void appendText( //F
const std::tstring& filename_, //-
const std::tstring& text_ ) { //-
std::tofstream out(filename_.c_str());
out << text_ << std::endl;
}
} //ns file
} //ns lx
#endif //eof