Thank you, guys, I think it is better if I use excel to do that, although it is more complex.
Thanks. Wesley Chen. On Fri, Jun 12, 2009 at 8:38 PM, Felipe Knorr Kuhn <[email protected]> wrote: > Hello, > > I use the following in my scripts: > > require "yaml" > > @urls = YAML.load_file("urls.txt") > @url = @urls.delete_at(0) > File.open('urls.txt', 'w') do |out| > YAML.dump(@urls, out) > end > > > FK > > 2009/6/12 Wesley Chen <[email protected]> > > Hi, Guys, >> I would like to read from a file, when I read a line, I would like to >> delete this line in the file, until all the file is read. >> >> Any suggestion would be quite appreciated. >> >> Thanks. >> Wesley Chen. >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
