From: Michal Rokos Date: 2002-03-07T08:17:03+09:00 Subject: Re: Load a Text file (newbie) In article , Dave Thomas wrote: > # this opens, reads, and closes > content = File.open("/etc/passwd") {|f| f.read} or: content = File.open("/etc/passwd").read Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail: m.rokos@sh.cvut.cz Jabber: majkl@jabber.cz, ICQ: 36118339 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-