-
July 6th, 2013, 01:15 PM
#1
Rename function return -1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|