Created
September 6, 2012 08:26
-
-
Save onigra/3653032 to your computer and use it in GitHub Desktop.
Make Test Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def writetext(filename, item, n, lines) | |
open(filename, "w") do |f| | |
lines.times do | |
f.write item.shift * n | |
f.write "\n" | |
end | |
end | |
end | |
a = ("a".."z").to_a | |
writetext(ARGV[0].to_s, a, ARGV[1].to_i, a.size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment