-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

2

Use FileUtils#touch from inside Ruby:

require 'fileutils'

FileUtils.touch 'bcc.rb'
#=> ["bcc.rb"]
Todd A. Jacobs
  • 81,402
  • 15
  • 141
  • 199