summaryrefslogtreecommitdiff
path: root/src/file.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-04-07 09:31:36 +1000
committerMaxime Coste <mawww@kakoune.org>2019-04-07 09:32:17 +1000
commit744778be30f2f78bea4af5523f00da98480cda4d (patch)
treee3f6032a644c471a8959da4c0d964b65785110dc /src/file.hh
parent835f2239a7428d3457e277c95ad39e2cdd5211d5 (diff)
Add a -to-file <filename> switch to the echo command
As discussed in #2836
Diffstat (limited to 'src/file.hh')
-rw-r--r--src/file.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file.hh b/src/file.hh
index 6871a1a3..5264616b 100644
--- a/src/file.hh
+++ b/src/file.hh
@@ -39,6 +39,7 @@ bool fd_writable(int fd);
String read_fd(int fd, bool text = false);
String read_file(StringView filename, bool text = false);
void write(int fd, StringView data);
+void write_to_file(StringView filename, StringView data);
struct MappedFile
{