Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://www.ruby-doc.org/core-1.9.3/File.html
- i = 1
- while i < 5
- i += 1
- myFile = File.new(i, "w+")
- myFile.puts ("This is a test 1")
- myFile.puts ("This is a test 3")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement