06-13-2011 08:33 PM
I tried running deny access after reading a file and when I tried to write to it, it gave me an error 8, a permission error. So I tried adding an explicit "Open", and it looks like that works. For this example:
there's no error at the first error cluster but there is one for the second. Any ideas why this is? I tested this in LV 8.6.1.
06-14-2011 02:23 AM - edited 06-14-2011 02:23 AM
The help to the "Read from Text File" function says:
"... If you wire a path to file, the function opens the file before reading from it and closes it afterwards."
So the write file function will have to reopen the file, but this time access is denied.
When opening the file ref explicitely the reference remains valid until it is closed explicitely.