Hello
The way you posted the question is vague...I am sure you must have put
some effort and since you have posted question here I assume you are doing it in perl..
Here is small code which does the file opening part
open(FILE, ">>" . $filetocreate) || die "Cannot Create File";
If you need more specific help please post your question with
proper description and error messages you are getting
I am sure all monks glad to help you
Cheers!!!