[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: file seeking
From: Pupeno <pupeno () pupeno ! com>
Date: 2004-05-30 1:21:37
Message-ID: 200405292221.39875.pupeno () pupeno ! com
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Do you know of a nice way of doing file seeking ?
I need to perform this operations:
1) Get how many lines a text file has.
2) Read line N.
I see that QIODevice can do seeking, but it's a bit 'raw' (it doesn't work
with 'lines'), any other method ?
I'm trying to implement a kind of graphical 'tail'.
Thanks.
- --
Pupeno: pupeno@pupeno.com - http://www.pupeno.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAuTcjfW48a9PWGkURAp0iAJ0cSxZ9KcNCmpMcmWWiKAvb5CmUpQCfZ2CH
SwG3MGXiXDy+lTmWhjkWUkk=
=PPvW
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic