I want to create a file in the path "~/testUsr" while I don't know which "testUsr" exactly is. if I just use path "~/testUsr", it will generate a directory "~" in current path instead of "home/testUsr";
// create directories
    std::string directoryPath = "~/testUsr";
    if(!boost::filesystem::exists(directoryPath)){
        boost::filesystem::create_directories(boost::filesystem::path(directoryPath));
    }
    std::string filePath = directoryPath + "/" + filename +".ini";
    if(!boost::filesystem::exists(filePath)){
        boost::filesystem::ofstream File(filePath) ;
        config.WriteConfigFile(filePath);
        File.close();
    }
    
 
    