错误的文件打开:文件已存在 [英] Error on file open: File exists

查看:117
本文介绍了错误的文件打开:文件已存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开放的()的返回值是-1并试图找到利用误差PERROR()的输出是文件存在。

The return value of an open() was -1 and on trying to find the error using perror() the output was "File exists".

我如何查找错误或文件不开放的原因。

How do I find the error or the reason for the file not opening.

推荐答案

看起来

EEXIST结果
      路径已经存在,O_CREAT和O_EXCL使用了。

EEXIST
pathname already exists and O_CREAT and O_EXCL were used.

这篇关于错误的文件打开:文件已存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆