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 imbibing at the Monastery: (5)
As of 2014-08-22 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (145 votes), past polls