When working with files, you can open them in one of several modes.
File.new("/file/path.txt", "w")
You can find the description of these modes in the IO documentation.
When working with files, you can open them in one of several modes.
File.new("/file/path.txt", "w")
You can find the description of these modes in the IO documentation.