i need to know if a file is ReadOnly or not

i 've found out how i can set this attribute
but i don't know how i can find out if the file is ReadOnly.

please help!

thx