What does "w+" mean in IO.open?

Hi, the rdoc says that "w+" means:

  "w+": Read-write, truncates existing file to zero length or creates a
         new file for reading and writing.

however in a post I've read:

  output = open("my_pipe", "w+") # the w+ means we don't block

Is it true? AFAIK it's not correct as you open a IO and later use bocking or
non-blocking methods. Do I miss something?

Thanks.

···

--
Iñaki Baz Castillo <ibc@aliax.net>

No. RI is RIght. :wink:

Kind regards

  robert

···

On 01/07/2010 03:41 PM, Iñaki Baz Castillo wrote:

Hi, the rdoc says that "w+" means:

  "w+": Read-write, truncates existing file to zero length or creates a
         new file for reading and writing.

however in a post I've read:

  output = open("my_pipe", "w+") # the w+ means we don't block

Is it true? AFAIK it's not correct as you open a IO and later use bocking or non-blocking methods. Do I miss something?

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/