01-12-2021 03:42 PM
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.
01-13-2021 03:52 AM - edited 01-13-2021 04:16 AM
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.