Erlang/OTP Forums

Author Message

<  Erlang  ~  processing files in a directory

ishmael
Posted: Tue Sep 02, 2008 9:40 am Reply with quote
Joined: 23 Jul 2008 Posts: 9 Location: RSA
Hi,

thanks for all the responses I got, they really helped.
I am trying to process files in a directory, but I am stuck with just processing 1 file at the moment, is there a way to read a directory and processes all files the same way.

thanks.
View user's profile Send private message
Mazen
Posted: Tue Sep 02, 2008 10:52 am Reply with quote
User Joined: 20 Jul 2006 Posts: 164 Location: London
Hi Ishmael,

Check out filelib:fold_files/5, it does what you describe.

http://www.erlang.org/doc/man/filelib.html

/Mazen
View user's profile Send private message
ishmael
Posted: Tue Sep 02, 2008 10:54 am Reply with quote
Joined: 23 Jul 2008 Posts: 9 Location: RSA
Thanks!
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum