Changeset 1331 for cpp/common/util-file.h
- Timestamp:
- 01/02/25 02:04:21 (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/util-file.h
r1153 r1331 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 1Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2024 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 12 12 #include <stdio.h> 13 13 #endif 14 #include <common/nonstd_span.h> 14 15 15 16 bool readCompleteFile(const char* filename, vector<char>& data, bool warn_on_missing_file = true); 16 17 bool readCompleteFile(const char* filename, string& out, bool warn_on_missing_file = true); 17 18 bool writeCompleteFile(const char* filename, const std::string& text, bool warn_on_fail = true); 18 bool writeCompleteFile(const char* filename, vector<char>& data, bool warn_on_fail = true); 19 bool writeCompleteFile(const char* filename, const span<char>& data, bool warn_on_fail = true); 20 bool writeCompleteFile(const char* filename, const span<uint8_t>& data, bool warn_on_fail = true); 21 bool writeCompleteFile(const char* filename, const vector<char>& data, bool warn_on_fail); 19 22 #ifdef USE_VIRTFILE 20 23 string readUntilEOL(VirtFILE *f);
Note: See TracChangeset
for help on using the changeset viewer.