LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File handling

Solved!
Go to solution

How can I check whether a file specified(it maybe a csv, doc or txt file ) is read-only or not using LabVIEW?

0 Kudos
Message 1 of 2
(1,071 Views)
Solution
Accepted by madhuvishal

You can read file permissions using the 'Get File Permissions' function.

 

Read the detailed help to get more information because the permissions value is a set of Booleans which you need to parse correctly.

 

The snippet below should do what you want though

Read Only.png

 

Edit: I have just realised that the read only flag is the wrong way around. The Read only flag flag will be false when the files is read only and true when it is not

Message 2 of 2
(1,033 Views)