#include <filesystem>
#include <iostream>
using std::filesystem::path,
std::cerr;
int main(){
char buffer[20]{"/home/temp.html\0"};
path p1(buffer);
cerr << "p1: " << p1.string() << "\n";
path p2 = p1.remove_filename();
cerr << "p2: " << p2.string() << "\n";
return 0;
}
C++ Examples© 2024 TBD