Write.rb
This content was produced by an LLM and could include errors.
This script demonstrates file handling in Ruby’s IRB. It uses File.write to create or overwrite the file ‘filewr.txt’, successfully writing the text “Hello” into that specific path.
File.write('input/file/filewr.txt', 'Hello')
#=> 5
Ruby 4.0.3