|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
[UNIX C programming language] in the paper production process where ah? ? ?
The following are my code :
[code]
Int main (void)
{
Int fd, rc;
Char path_name[]= "Hello.test";
Fd = creat (path_name, S_IRWXU);
If (fd ====== 1)
{
Perror ( "creat");
While (100)
{
Printf ( "error!\n");
}
Return (-1);
}
Printf ( "Success!\n");
Rc = write (fd, "Hello", 6);
If (rc "= 0)
{
Printf ( "Error in write!\n");
}
Printf ( "Write %d bytes into File[%2d]!\n" rc, fd);
Close (fd);
Unlink (path_name);
Return (0);
}
[/code]
After the operation is displayed on the screen :
$. /a.out
Success!
Write 6 bytes into File[ 3]!
$
But I have a list of procedures under Hello.test did not find the document. ! ! This is why you? ? ? |
[UNIX C programming language] in the paper production process where ah? ? ?
Man unlink |
[UNIX C programming language] in the paper production process where ah? ? ?
Unlink delete your document production. |
[UNIX C programming language] in the paper production process where ah? ? ?
This procedure is not copied! Do not know how to do their own! |
| |