Using the skeleton below
#include <unistd.h> // read/write
#include <sys/file.h> // open/close values
#include <string.h> // strlen
int main( int argc, char *argv[], char *env[] )
{
// C++ or C code
}
Write a C++ application myrm that removes (deletes) files passed as command line
argument. Use only the Unix/Linux API in your program, do not use standard library
functions.
Hint:
echo > File1
./myrm File1
I've gone through several linux api tutorials and am fairly competent with c++. I would greatly appreciate any help or advice.
Dave