Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 $stdin
Index -> Programming, Ruby -> Ruby Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Mackie




PostPosted: Thu Feb 28, 2008 8:58 pm   Post subject: $stdin

How do I use '$stdin' in Ruby? I don't see any advantages over 'gets'. And what are all of the definitions? I can't find anything about it, in any form of documentation. Thanks in advance.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Feb 28, 2008 9:57 pm   Post subject: RE:$stdin

$stdin is an instance of an IO class. gets is a method of $stdin
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Ruby -> Ruby Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: