>hI
>I use Fcreate, Fputs and Fclose to create a Txt file.
>At the end of my creation, I want to have the file read only.
>I know Fcreate can do this, but then I cant write to the file.
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.