Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: encode problems on AS400

by Anonymous Monk
on Mar 13, 2018 at 12:49 UTC ( #1210818=note: print w/replies, xml ) Need Help??

in reply to encode problems on AS400

In detail: seek to a point before the end of the file which you anticipate will be before the last-strings that you ... ahem ... seek. Now start reading, knowing that you probably landed right in the middle of a string (but not the string you want anyway). Read the remaining strings and, say, push them onto the end of an array. When you reach the end of the file, verify that the array contains at least three strings. An array-slice consisting of the last three strings is, in order, the data that you ... seek. (Do not stack the presumed-incomplete string that you probably landed smack-dab in the middle of ...)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210818]
NodeReaper says "Shhhh! Be vewy vewy quiet, I'm hunting wumpus"

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2018-04-20 22:47 GMT
Find Nodes?
    Voting Booth?