Skip to content

Instantly share code, notes, and snippets.

@maxplomer
Created September 15, 2014 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxplomer/67f08638ede3ccef2462 to your computer and use it in GitHub Desktop.
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
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