File access

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

=D Thanks!

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.

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.

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.

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