NXは、二次開発の-UFUNファイルがUF_CFI_ask_file_existが存在するかどうかを判断します

1つの#include <uf.h>
 2の#include <uf_ui.h>
 3。の#include <uf_cfi.h>
 4。 
5。 
6。 UF_initialize();
 7  
8。 // ファイルが存在するかどうかを決定する
9。 int型のステータス= 0 ; // 出力0が存在します出力存在しない
10 UF_CFI_ask_file_exist(" D:\\ 1.TXT "、およびステータス);
 11  
12である IF(ステータス== 0 13である {
 14      uc1601(" 存在"1 );
 15  }
 16 他の
17  {
 18が      uc1601(" 存在しない"1。);
 19  }
 20は 
21である 
22である UF_terminate();
 23である 
24  Csesar Lushangゆう
 25 2019年7月1日

おすすめ

転載: www.cnblogs.com/nxopen2018/p/11116088.html