Z
zhiwei wang
I am new to dealing with the file system using C. And couldnt find
anyone in my office to help me out.
okay here is my questions.
If I want to delete a file in a directory other than my working
directory, I would construct a string look like this:
str="../../foo/bar/foobar"
add use "remove(str);" to delete this file. A lot of my work involves
constructing the directory string, so I wonder if this is a common
practice of deleting files in C. Do you guys have better ways of
performing this task?
Thank you.
anyone in my office to help me out.
okay here is my questions.
If I want to delete a file in a directory other than my working
directory, I would construct a string look like this:
str="../../foo/bar/foobar"
add use "remove(str);" to delete this file. A lot of my work involves
constructing the directory string, so I wonder if this is a common
practice of deleting files in C. Do you guys have better ways of
performing this task?
Thank you.