LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make the property of data file Read Only?

This data file is received from my programm.I don't want someone could change it.
0 Kudos
Message 1 of 2
(2,563 Views)
You can use the SetFileAttrs() function (from the utility library) to set the read-only attribute of a file, eg:

result = SetFileAttrs("c:\\myfile.txt",1,-1,-1,-1);

--
Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 2
(2,563 Views)