Created
September 15, 2014 20:41
-
-
Save maxplomer/67f08638ede3ccef2462 to your computer and use it in GitHub Desktop.
need to use shift to get args from argv otherwise will mess up gets
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 argv_test | |
filename = ARGV.shift | |
game_save = File.readlines(filename) | |
p game_save | |
x = gets.chomp | |
p x | |
end | |
argv_test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment