|My program goes this way--|
std:string FilePath= "\\\\10.21.21.235\\temp\\LOG.txt";
std::ofstream FP(FilePath.c_str(), std::ios::out);
cout<<"File not opened"
Now Output is:
File not opened
SO i dont find what exactly here the problem is I have given full acess to share as well.