如何在 OSX 中打开网络共享文件?我尝试使用和不使用“cifs:”。还尝试了“192.168.xxx.xxx”但没有用。谢谢。
const std::string path_name("cifs://netshare.local/data/config.txt");
std::ifstream file( path_name.c_str(), std::ios::binary );
if (file.is_open())
{
file.close();
return true;
}
else
{
// program comes in here
return false;
}