Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: File seek

by johngg (Abbot)
on Feb 25, 2013 at 11:55 UTC ( #1020502=note: print w/ replies, xml ) Need Help??


in reply to Re^3: File seek
in thread File seek

From the documentation

The values for WHENCE are 0 to set the new position in bytes to POSITION; 1 to set it to the current position plus POSITION; and 2 to set it to EOF plus POSITION, typically negative.

I suspect your error message is because you are trying to seek to a negative offset from the beginning of the file.

Cheers,

JohnGG


Comment on Re^4: File seek
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020502]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2015-07-31 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls