1 #include <uf.h> 2 #include <uf_ui.h> 3 #include <uf_cfi.h> 4 5 6 UF_initialize(); 7 8 //判断文件是否存在**也可以用来判断文件夹存不存在 9 int status = 0;//输出0存在,输出1不存在 10 UF_CFI_ask_file_exist("D:\1.txt", &status); 11 12 if (status == 0) 13 { 14 uc1601("存在", 1); 15 } 16 else 17 { 18 uc1601("不存在", 1); 19 } 20 21 22 UF_terminate(); 23 24 Csesar卢尚宇 25 2019年7月1日