How to name just created .TXT files in such a way that file name differs each time
<p>I have compiled the user's answers into a .TXT file and move it to another location, where I would store all the answers. I would need that .TXT to be named differently each time a user runs the application, so that the file is not replaced. I thought about appending time stamps next to the original name, but not sure how to do that. </p>

<p>My code:</p>

<pre><code>require 'FileUtils'

puts "1) How would you rate the manual? Range: 1-10."
rating_range = gets.to_i

puts "2) How could the manual be improved? Type your answer below:"
improvement = gets.chomp

puts "3) What would you add to the manual. Type your answer below:"
addition = gets.chomp

puts "4) Indicate any general comments you would like to add:"
general_comments = gets.chomp


File.open("Survey.txt", 'w') { |file| 
file &lt;&lt; "1) #{rating_range}\n"
file &lt;&lt; "2) #{improvement}\n"
file &lt;&lt; "3) #{addition}\n"
file &lt;&lt; "4) #{general_comments}\n"
}   
FileUtils.mv('/Documents/Survey.txt', '/Stuff')
</code></pre>

<p>The file <code>Survey.txt</code> should be named differently each time.
Any ideas? </p>