Skip to content

ebengt/erlang_string_io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allow io module to read/write an Erlang string.

string_io makes it possible to open/2 an Erlang string, like file:open/2 for a file. The pid() returned can be passed to the io library module, for reading and writing into the string.

Useful when some module expects to read/write to a file, but you rather not create a temporary file for this. The other module must, of course, have an interface that handles an io pid(). As luck would have it, the one place where I needed this feature, epp_dodger:parse/1, has such an interface.

About

Make a string usable for io module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages