line oriented input, is there an alternative to the io module?

Bengt Kleberg <>
Fri Sep 17 14:26:57 CEST 2004


if i want to (quickly) read the integers in a file, line by line, is 
there a faster alternative to
io:fread( '', "~d" )

i am using the io:fread/2 for line oriented input. ever since i was told 
about httpd_util:to_upper/1 i know that there might be alternatives to 
''standard'' modules/functions to be found in unexpected places. 
(to_upper/1 i would have expected in the lists module)

i have tested io:get_line/1 followed by io_lib:fread/1. this was 
(predictably) slower.


More information about the erlang-questions mailing list