One Hat Cyber Team
Your IP :
216.73.216.64
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
include
/
boost
/
filesystem
/
Edit File:
string_file.hpp
// filesystem/string_file.hpp --------------------------------------------------------// // Copyright Beman Dawes 2015 // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt // Library home page: http://www.boost.org/libs/filesystem #ifndef BOOST_FILESYSTEM_STRING_FILE_HPP #define BOOST_FILESYSTEM_STRING_FILE_HPP #include <string> #include <boost/filesystem/fstream.hpp> #include <boost/filesystem/operations.hpp> namespace boost { namespace filesystem { inline void save_string_file(const path& p, const std::string& str) { filesystem::ofstream file; file.exceptions(std::ofstream::failbit | std::ofstream::badbit); file.open(p, std::ios_base::binary); file.write(str.c_str(), str.size()); } inline void load_string_file(const path& p, std::string& str) { filesystem::ifstream file; file.exceptions(std::ifstream::failbit | std::ifstream::badbit); file.open(p, std::ios_base::binary); std::size_t sz = static_cast<std::size_t>(filesystem::file_size(p)); str.resize(sz, '\0'); file.read(&str[0], sz); } } // namespace filesystem } // namespace boost #endif // include guard
Simpan