文件对象可以通过 fats 库的 open_file 函数创建,也可以直接使用 Python 内置的 open 函数。以下是一个简单的示例: ```python import fats # 使用 fats 库的 open_file 函数创建文件对象 f = fats.open_file("example.fat") # 使用 get_fat 函数获取 FAT 信息 fat_info = fats.get_fat(f) # 输出 ...
函数名: getfat, getfatd 功能: 取文件分配表信息 用法: #include <dos.h> void getfat(int drive, struct fatinfo *fatblkp); 程序例: #include <stdio.h> #include <dos.h> int main(void) { struct fatinfo diskinfo; int flag = 0; printf("Please insert disk in drive A\n")...