文件操作
打开文件
使用open函数和create函数打开和创建文件
#include<stdio.h>
#include<unistd.h>
int main()
{
printf("the proce id is %d\n",getpid());
printf("the parent process id is%d\n",getpid());
return 0;
}
读写文件
1.打开文件
函数
使用open函数和create函数打开和创建文件
#include<stdio.h>
#include<unistd.h>
int main()
{
printf("the proce id is %d\n",getpid());
printf("the parent process id is%d\n",getpid());
return 0;
}
1.打开文件
函数
本文标题:1706
本文链接:https://www.haomeiwen.com/subject/jvotbttx.html
网友评论