Advertisement
Guest User

Untitled

a guest
Nov 13th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. http://www.ruby-doc.org/core-1.9.3/File.html
  2.  
  3. i = 1
  4.  
  5. while i < 5
  6. i += 1
  7.  
  8. myFile = File.new(i, "w+")
  9. myFile.puts ("This is a test 1")
  10. myFile.puts ("This is a test 3")
  11.  
  12.  
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement