From: Tom Reilly Date: 2007-09-07T02:59:41+09:00 Subject: Re: Where is the definition of File.read()? optman wrote: > Where is the public class method File.read() defined? Which take a > file name as parameter, but what is in return? I have search all the > document and source code, just can't find the definition. > > Could anyone point me to the source file? I really want to know, > thanks in advance. > Try: file_in = File.new("input_file","r") file_in.each do |line| add whatevery you want end file_in.close > >