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;
}