From: Lloyd Linklater Date: 2007-12-14T21:03:26+09:00 Subject: Re: Hot to access the text file and delete it. Ankush Regundwar wrote: > How do i access the text file and delete the file. This file gets > generated periodically. So i need to make a script for d same so that i > can delete it just by running the ruby script Are you looking for something like File.open("testrm", "w+") { do_stuff } File.delete("testrm") ! 1 -- Posted via http://www.ruby-forum.com/.