File access

Hello, just wondering how I would go about making a file read-only, and
writeable only through my program.

=D Thanks!

···

--
Posted via http://www.ruby-forum.com/.

In which file system and operating system?
You need a file system supporting user/group permissions (as Unix/Linux any
filesystem). Windows with FATXX doesn't support it.

Then you must use File methods about file permissions.

···

El Miércoles, 25 de Junio de 2008, Justin To escribió:

Hello, just wondering how I would go about making a file read-only, and
writeable only through my program.

--
Iñaki Baz Castillo

http://www.ruby-doc.org/stdlib/libdoc/fileutils/rdoc/classes/FileUtils.html#M000714

···

On 25.06.2008 01:40, Justin To wrote:

Hello, just wondering how I would go about making a file read-only, and
writeable only through my program.