-4

Just simply trying to make a file in ruby however it says that the touch command is not recognized, any ideas?screenshot of error

1 Answers1

1

Use FileUtils#touch from inside Ruby:

require 'fileutils'

FileUtils.touch 'bcc.rb'
#=> ["bcc.rb"]
Todd A. Jacobs
  • 76,463
  • 14
  • 137
  • 188