当前位置: 技术问答>linux和unix
问什么总是提示没有此文件啊,我都创建了
来源: 互联网 发布时间:2015-12-10
本文导语: 源代码: #include #include #include #include #include main() { int fd; int exist; char *ip="ip=192.2.1.199"; char *port="port=9017"; int size; exist = access("profile.txt",...
源代码:
#include
#include
#include
#include
#include
main()
{
int fd;
int exist;
char *ip="ip=192.2.1.199";
char *port="port=9017";
int size;
exist = access("profile.txt",F_OK);
if(exist == -1)
{
if((fd = creat("profile.txt",0644))
#include
#include
#include
#include
#include
main()
{
int fd;
int exist;
char *ip="ip=192.2.1.199";
char *port="port=9017";
int size;
exist = access("profile.txt",F_OK);
if(exist == -1)
{
if((fd = creat("profile.txt",0644))