How to read the file in dir one by one

Hello Every1,

Can anyone tell me how to read the files one by one fro a directory and write the output of each file in another directory without over writing?

I have a protocol which can read i file at a time and write a file but the problem is the when i read the next file, the output of the file is overwrite the previous file data.

Can any1 help me out?

I would really appreciate ur help.

Thanks a lot.

Kuldeep Jariwala