Mobody hackely
4/22/2006 1:54:00 PM
On Fri, 21 Apr 2006 21:03:12 GMT, gabriele renzi
<surrender_itRemove@yahoo.it> wrote:
>olleolleolle ha scritto:
>> Dear Aidy,
>>
>> The file is called .irbrc (with a dot), and resides in your home
>> folder. ~/.irbrc as they say in UNIX-speak. If you are on Windows, I'm
>> not sure where that should live.
>
>on win32 I have just set an IRBRC=\path\to\file env variable and it
>works fine, I never investigated where my home was supposed to be :)
[drive]:\documents and settings\[username]
I believe you can use _irbrc, as windows won't let you create .irbrc
through explorer. You can create it programatically though.
File.open( "C:\\documents and setting\\administrator\\.irbrc", "w" )
do |f|
f.puts "# Heres a comment"
end