⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fileleng.c

📁 vc library 韩国语版 希望对大家又帮助
💻 C
字号:
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
void main(void)
{
  int handle;
  long length;
  handle = open("c:\\command.com", O_RDONLY | O_BINARY);
  if (handle==-1)
    {
    printf("command.com is not found");
    exit(1);
    }
  length=filelength(handle);
  printf("file length in bytes: %ld\n",length);
  close(handle);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -