The application (vi) writes to a data file whenever the data changes. Other users want to be able to view the data file from time to time. The problem is that when the data file is opened by the other users, the vi is unable to write to the file. Is there a way to programmatically set the file attribute of the data file to "read only"? This would make the "client" computer open the file as a copy thus allowing the "host" computer to maintain full control. The vi could change the file attribute to "read/write" make the change the change the attribute back to "read only".
Thanks!