Sebastian Hungerecker
1/13/2008 7:45:00 PM
Mike McKinney wrote:
> should do :
>
> =A0 =A0 ValidDate =3D File.readlines('someFile.txt').to_s.grep(/Not After=
/)
Yes, and leave out the to_s, too. If you want a string use File.read instea=
d=20
of File.readlines. In this case you can use both, though, since String and=
=20
Array both have a grep method. But using readlines to get an array and then=
=20
converting it to string via to_s, doesn't make sense.
HTH,
Sebastian
=2D-=20
NP: Anathema - Cerulean Twilight
Jabber: sepp2k@jabber.org
ICQ: 205544826