?? show_pos.c
字號:
#include <stdio.h>
void main(void)
{
FILE *input;
int letter;
if ((input = fopen("\\CONFIG.SYS", "r")) == NULL)
printf("Error opening \\CONFIG.SYS\n");
else
{
printf("Current position is byte %d\n\n", ftell(input));
// Read and write each character in the file
while ((letter = fgetc(input)) != EOF)
fputc(letter, stdout);
printf("\nCurrent position is byte %d\n", ftell(input));
fclose(input); // Close the input file
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -