daro Posted August 19, 2008 Report Share Posted August 19, 2008 HI, I'm trying to read a text file and based on some condition I need to delete the file. The problem is that sometimes I received the error 5 "File already open" and I don't know why, I close the file after so I have no idea why it could be still open. Thanks for your help. Link to comment
Francois Normandin Posted August 19, 2008 Report Share Posted August 19, 2008 Wire the error in & out of the "Close" vi. Then have the "error out" wired to your Case structure. This way you'll be sure the file is closed properly before you try to delete it. EDIT: You could also use the "path" output from the Close vi. This will ensure dataflow happens the way you want it to happen. Link to comment
LAVA 1.0 Content Posted August 20, 2008 Report Share Posted August 20, 2008 daro, and this will surly solve your problem... As a tip; always wire your error cluster even if u feel its not important. Link to comment
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now