go top

以只读方式打开文件

网络释义

  HANDLE hFile CreateFile

已解决问题 ... if (_access(pFileName, 0) != -1) // 判断文件是否存在 HANDLE hFile = CreateFile(pFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, NULL, NULL); // 以只读方式打开文件 DWORD dwSize = GetFileSize(hFile, &dwLen); // 获取文件长度 ...

基于4个网页-相关网页

有道翻译

以只读方式打开文件

Open the file in read-only mode

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 函数尝试使用错误文件描述符例如引用打开文件或者用于尝试写入以只读方式打开文件)。

    EBADF -- A function tried to use a bad file descriptor (it doesn't refer to an open file, for example, or it was used in an attempt to write to a file that was opened read-only).

    youdao

  • fopen使用r ”将指示文件以只读方式打开

    Note: the "r" used in fopen indicates that the file is open for reading only.

    youdao

  • 只读方式打开放置文件开头文件指针

    Open for reading only; place the file pointer at the beginning of the file.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定