Skip to content

Instantly share code, notes, and snippets.

@wolfedale
Created May 26, 2015 16:40
Show Gist options
  • Save wolfedale/4af7bd3721a94d151357 to your computer and use it in GitHub Desktop.
Save wolfedale/4af7bd3721a94d151357 to your computer and use it in GitHub Desktop.
$test = join '', $stdin.read
$test = join '', readline($stdin.gets)
$test = join '', readline(STDIN.gets)
then:
# cat file.txt | ./code.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment