B
Belorion
------=_Part_3370_24140208.1132327424566
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
What am I missing here (apologies if this is just my 7am brain fog
speaking):
The contents of my file (test) are:
1
2
3
4
5
6
f =3D File.open('test')
f.lineno =3D 4
puts f.readline # <=3D This returns 1, instead of 4 as expected
I'm trying to do fast lookups in a file based on line number, but this isn'=
t
working like I expected it to. 1) What am I missing here? 2) If this is not
what lineno=3D() is designed for, then what is it supposed to be used for? =
3)
is there another easy way for fast lookups by line#? Thanks.
------=_Part_3370_24140208.1132327424566--
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
What am I missing here (apologies if this is just my 7am brain fog
speaking):
The contents of my file (test) are:
1
2
3
4
5
6
f =3D File.open('test')
f.lineno =3D 4
puts f.readline # <=3D This returns 1, instead of 4 as expected
I'm trying to do fast lookups in a file based on line number, but this isn'=
t
working like I expected it to. 1) What am I missing here? 2) If this is not
what lineno=3D() is designed for, then what is it supposed to be used for? =
3)
is there another easy way for fast lookups by line#? Thanks.
------=_Part_3370_24140208.1132327424566--