How can I open a network shared file in OSX? I tried with and without "cifs:". also tried "192.168.xxx.xxx" but not working. thanks.
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;
}