[erlang-questions] io:read/3 acts the same as io:read/2

Tristan Sloughter kungfooguru@REDACTED
Fri Jun 8 01:02:05 CEST 2007


I am attempting to use the io:read/3 function that takes an IODevice, 
Prompt and StartLine. Something as simple as this does not work:*

{ok, File} = file:open("File.txt", [read])
{ok, Term, EndLine} = io:read(File, "", 2)

For the file I have, tuples followed by periods one on each line, it 
always returns the first line's Term when I say 2 (or any number). And 
another call of io:read/3 continues along sequentially no matter what 
StartingLine I give it. It will never jump foward or backwards. It just 
acts exactly like io:read/2.

Has io:read/3 been deprecated? I couldn't find a mention of it in any of 
the releases Readmes if it has.

Thank you,
Tristan Sloughter


*



More information about the erlang-questions mailing list