[erlang-questions] Location options in file:pread/2 and /3

Zvi <>
Wed Apr 23 23:15:42 CEST 2008


Are all these options are still supported in file:pread/2 and file:pread/3 ?
>From my tests, only file:position accepts them. file:pread/2 and /3 only
accepts Offset and giving {error,badarg} for the rest.

"Offset 
The same as {bof, Offset}.

{bof, Offset} 
Absolute offset.

{cur, Offset} 
Offset from the current position.

{eof, Offset} 
Offset from the end of file.

bof | cur | eof 
The same as above with Offset 0."

I using R12-0 on Windows.

TiA,
Zvi
-- 
View this message in context: http://www.nabble.com/Location-options-in-file%3Apread-2-and--3-tp16834826p16834826.html
Sent from the Erlang Questions mailing list archive at Nabble.com.




More information about the erlang-questions mailing list