>>You got the answer - I just want to correct this: fCreate()... but then I did some checking, and you're right, fCreate() CAN create a file into which you can't write! This is a fabulous way to paint yourself into a corner. And since the LLFF are actually just wrappers around system functions, it means that any piece of software that wants to create a read-only file can do it only the way we do it (i.e. see other answers): make a RW file, close it, set RO. It can create a RO file but then it can't write to it :).
>>
>>Seems to be it was so even before Windows. Fox had LLFF in 2.0, IIRC.
>
>Reminds me of my old time favorite, the WROM, WRite Only Memomy. Or Write once, read never. Perfect for secret messages.
I've heard that c++ and a select few other are classified as "write only languages".