File operation API under linux?
Hi, when I turned from Windows to Linux, found the file operation interfaces are not available to me ?
Who can tell me what is the c API under Linux to "delete a file", "copy a file", "rename a file" ?
Thank you!
[230 byte] By [
wxuf] at [2007-11-19 7:39:49]

# 1 Re: File operation API under linux?
check out this
http://www.cplusplus.com/ref/cstdio/index.html
http://www.cplusplus.com/ref/cstdio/remove.html
but this is not the right place for this question!
http://www.dev-archive.com/forum/forumdisplay.php?f=9
# 3 Re: File operation API under linux?
Not quite what you asked for but:
http://www.boost.org/libs/filesystem/doc/index.htm
boost::filesystem is a portable C++ library to manage files
# 4 Re: File operation API under linux?
Who can tell me what is the c API under Linux to "delete a file", "copy a file", "rename a file" ?
int remove(const char* filename)
int rename(const char* oldname, const char* newname)
IIRC, there is no standard 'copy' command...
# 5 Re: File operation API under linux?
Thank you, they are what i want !
wxuf at 2007-11-9 0:46:49 >
