Hi Élie, Elie Roux a écrit : > Taco Hoekwater a écrit : >> Why not just do io.open(,"w") ? if it fails, you couldn't write. And >> such a test will do the 'right thing' if the disk is full or mounted >> read-only. > > That what I do, but this is a bit dirty as a solution... > On the contrary, as Taco said, and as every Unix guru will confirm, it is *the* way to go. Just try opening and see if it worked. The system is not going to blame you because you tried to do something forbidden :-)
Manuel.
