Parsing formatted text

Bengt Kleberg <>
Mon Jul 25 16:19:37 CEST 2005


On 2005-07-12 11:30, Joel Reymont wrote:
...deleted
> 
> I wish there was a version of io:format that read data from a "string".

i have written such a thing. it uses io:fread() with a custom io process 
that uses a string instead of a file. it works, but uses the nice ''New 
Erlang Standard Libraries'' by 

i have included my code below if you are interested in a starting point 
for a better way of doing it.


bengt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: string_io.erl
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050725/04b19c3a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: string_io_test.erl
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050725/04b19c3a/attachment-0001.ksh>


More information about the erlang-questions mailing list