NX determine whether the secondary development -UFUN file exists 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  // determine whether a file exists 
. 9  int Status = 0 ; // output 0 is present , absent the output 
10 UF_CFI_ask_file_exist ( " D: \\ 1.txt " , & Status);
 . 11  
12 is  IF (Status == 0 )
 13 is  {
 14      uc1601 ( " present " , 1 );
 15  }
 16 the else 
. 17  {
 18 is      uc1601 ( " not present " , . 1 );
 . 19  }
 20 is  
21 is  
22 is  UF_terminate ();
 23 is  
24  Csesar Lushang Yu
 25 July 1, 2019

Guess you like

Origin www.cnblogs.com/nxopen2018/p/11116088.html