?? autoinfo.c
字號(hào):
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <sys\stat.h>
#include <time.h>
void main(void)
{
int handle;
struct stat buffer;
if ((handle = open("\\AUTOEXEC.BAT", O_RDONLY)) == -1)
printf("Error opening \\AUTOEXEC.BAT\n");
else
{
if (fstat(handle, &buffer))
printf("Error getting file information\n");
else
printf("AUTOEXEC.BAT is %ld bytes Last used %s\n",
buffer.st_size, ctime(&buffer.st_atime));
close(handle);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -