
rovf
Veteran
Dec 9, 2010, 1:56 AM
Post #3 of 3
(1696 views)
|
|
Re: [2wheeler] Simple perl prob...
[In reply to]
|
Can't Post
|
|
If the file is "reasonably" small and a text file, read it in slurp mode (http://www.sysarch.com/Perl/slurp_article.html) and use substr to extract the 15 characters you are interested in. An alternative is to open the file and use seek to position the file pointer to a specific position, and start reading from there the next 15 bytes using sysread.
|