From: Cristian Ispas Date: 2010-07-30T22:14:28+09:00 Subject: Re: show all files from a folder How can I display the content of a folder after some time of its creation, in order to see the newly added files? Any script with File.readlines? any help? James Gray wrote: > On Mar 1, 2006, at 1:43 PM, misiek wrote: > >> I can not find nothing about files in google, >> how to create > > File.open("my_file.txt", "w") { |f| f.puts "A line in the file." } > >> delete > > File.unlink "my_file.txt" > >> how to show all files from a folder > > puts Dir["path/to/dir/*"] > >> if you can redirect me to some web site I'd appreciate > > Try browsing through the methods of File and Dir in the docs: > > http://www.ruby-doc.org/core/ > > Hope that helps. > > James Edward Gray II -- Posted via http://www.ruby-forum.com/.