add a GetUTF8File(...) method with a pt::WTextStream & content to the misc

This commit is contained in:
2023-07-04 22:59:57 +02:00
parent 08821eb440
commit bf79e46411
2 changed files with 38 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2021, Tomasz Sowa
* Copyright (c) 2008-2023, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -664,6 +664,10 @@ bool RenameFile(const std::wstring & from, const std::wstring & to);
bool GetUTF8File(const wchar_t * file_path, std::wstring & content, bool clear_content = true);
bool GetUTF8File(const std::wstring & file_path, std::wstring & content, bool clear_content = true);
bool GetUTF8File(const wchar_t * file_path, pt::WTextStream & content, bool clear_content = true);
bool GetUTF8File(const std::wstring & file_path, pt::WTextStream & content, bool clear_content = true);
bool GetBinaryFile(const wchar_t * file_path, BinaryPage & content, bool clear_content = true);
bool GetBinaryFile(const std::wstring & file_path, BinaryPage & content, bool clear_content = true);