NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

怎么判断已经存在的文件?

在程序开始想检查文件是否存在:
不存在的话给各个变量赋初值
存在的话读取该文件,把文件中数据作为初始变量给各个变量赋初值

这样的话文件是否存在怎么判断?用case吗?
请教大侠给个例子啊!
bow
0 项奖励
1 条消息(共 4 条)
4,120 次查看

Check the file size, if 0, not exist.

Code Interface Node function has FExist

Window has PathFileExist API.

 

George

George Zou
0 项奖励
2 条消息(共 4 条)
4,115 次查看
哥,说通俗点啊~~~~~~~~~~
0 项奖励
3 条消息(共 4 条)
4,108 次查看

I suggest that use "list directory.vi"

it is good.

________________________________________________________


Try to make everything Automatic
0 项奖励
4 条消息(共 4 条)
4,089 次查看