Hello,

I used rename function to rename a file.
The file names are in std::string type variable.
The function usage is like this
int result = rename (old_file_name.c_str(),new_file_name.c_str());

i expected result = 0 but i get result = -1.
Does this return code is due to any file pointer holding to this file?

Thanks
Dave