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

  • Thread starter Iñaki Baz Castillo
  • Start date
I

Iñaki Baz Castillo

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 =3D 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 o=
r=20
non-blocking methods. Do I miss something?

Thanks.

=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>
 
R

Robert Klemme

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?

No. RI is RIght. ;-)

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top