LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file I/O error 5

I know this topic has been covered before, but I would like some assistance.  I have a VI that reads a CSV file and displays the content for users to modify.  There is a default filename that is used initially.  If the user modifies this file then quits the program, the original CSV file is deleted and a new file is created using the default name.  If the user imports another file, then modifies it, error 5 is generated when quitting the program.  I've enclosed a PPT file that shows how, in the main VI, the file is initially read, and how the new file is imported.  I've also enclosed the subVI that does the actual reading AND closing of the file.  I am confused because I close the file immediately after reading the contents.  If I try to open the file again (before attempting to delete it) I still get error 5.

0 Kudos
Message 1 of 2
(1,231 Views)

I'm confused too after reading your post. It's not possible to say what's going on without seeing the whole code.

Your usage of Build Path looks unusual to me. Where the file Coupling.txt is supposed to be? Ok, I figured it out myself.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 2
(1,180 Views)