LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open file for reading and allow access by others

How can I open a file for reading and still allow others to access (read and write) the file?  I plan to keep this file open for the duration of my program and close it at the end.  However while my program is running another program will need access to the file so it can write to it.  I may be wrong, but I dont think that setting the appropriate permission will solve the problem...  Thank you for your time.

Cheers!
0 Kudos
Message 1 of 2
(2,346 Views)

hi jmcbee,

      I think as long as "readers" open a file as "ReadOnly", then the OS (at least Windows) will allow another process to open and write to the same file without a problem.  It's been a while since I've done this - maybe 7 years - and I may have opened the "writer" first, though doubt it makes a difference.

Have you tried?

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 2
(2,335 Views)