Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = "File"
- y = 1
- #do check if File1 exists
- #if it does, do something
- #if it does not run the code below
- keep_reading_files = true
- until keep_reading_files == true
- z = x + y.to_s
- if File.exists?(z)
- x = File.read(z)
- else keep_reading_files = false
- end #so on
Advertisement
Add Comment
Please, Sign In to add comment