diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-12 22:48:52 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-12 22:48:52 -0700 |
| commit | 7069fbbebc750a7c8a64adc8c30269527cbec9bd (patch) | |
| tree | 94d08f8fd3f04be1167f274c7aab37d0100a693b /toolsrc/include/vcpkg_Files.h | |
| parent | 7326b6c64dc6b04b6d8512f13dddf67bf7498bf1 (diff) | |
| download | vcpkg-7069fbbebc750a7c8a64adc8c30269527cbec9bd.tar.gz vcpkg-7069fbbebc750a7c8a64adc8c30269527cbec9bd.zip | |
[vcpkg] Remove+indirect nearly all uses of iostreams
Diffstat (limited to 'toolsrc/include/vcpkg_Files.h')
| -rw-r--r-- | toolsrc/include/vcpkg_Files.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg_Files.h b/toolsrc/include/vcpkg_Files.h index dde5cf5ee..7bf13e973 100644 --- a/toolsrc/include/vcpkg_Files.h +++ b/toolsrc/include/vcpkg_Files.h @@ -14,6 +14,7 @@ namespace vcpkg::Files virtual std::vector<fs::path> non_recursive_find_all_files_in_dir(const fs::path& dir) const = 0; virtual void write_all_lines(const fs::path& file_path, const std::vector<std::string>& lines) = 0; + virtual void write_contents(const fs::path& file_path, const std::string& data) = 0; virtual void rename(const fs::path& oldpath, const fs::path& newpath) = 0; virtual bool remove(const fs::path& path) = 0; virtual bool remove(const fs::path& path, std::error_code& ec) = 0; |
