At: Ruby on Rails - File Uploading | Tutorialspoint
And, in:
File.open(path, “wb”)
What is meant by “wb”?
Thanks.
At: Ruby on Rails - File Uploading | Tutorialspoint
And, in:
File.open(path, “wb”)
What is meant by “wb”?
Thanks.
Abder-Rahman A. wrote:
At: Ruby on Rails - File Uploading
And, in:
File.open(path, “wb”)
What is meant by “wb”?
Your first port of call should be the documentation. Go to:
and in the top right pane select open(IO). This is because File is a
subclass of IO and inherits the open method - admittedly this is not
clear to a newcomer. Then scroll to the top of the page to see a list of
all the mode strings.
Or, at the command prompt, just type “ri IO”
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs