Bard gave me this program for Windows but it doesn't work. Says it can't find the file Any suggestions.
def generate_file(filename)
file = File.open(filename, 'w')
file.puts 'This is the content of the file.'
file.close
# Open the file in RubyMine
system("start #{filename}")
end
filename = 'my_file.txt'
generate_file(filename)`