Actions
Feature #4742
closedAllow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)
Feature #4742:
Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)
Description
Currently we have these options for File.open:
File.open('yo', 'w')
File.open('yo', File::WRONLY|File::TRUNC|File::CREAT)
File.open('yo', :mode => 'w')
but not
File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)
Which seemed a bit surprising to me, so making a feature request for it.
Cheers!
-roger-
Actions