Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
ARGF.gets : ARGF « Development « Ruby
Ruby
Development
ARGF
ARGF.gets
#!/usr/bin/env ruby
while
line = ARGF.gets puts line end
Related examples in the same category
1.
ARGV and ARGF
2.
ARGF ($<) is a virtual concatenation of all the files that appear on the command line.