ITP - files - dummy_file.txt

There comes a time when a file is not needed, in which case we want to
delete it. We can do that by passing the name or reference to a file we
want to delete to File.delete. Let's see it in action:

irb :001 > File.new("dummy_file.txt", "w+")
 => #<File:dummy_file.txt>
...