Create the directory first using mkdir, and test the return value. If this is successful, you should then be able to create the file and write to it.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: How can one create a folder B in D drive and save results in a text file inside B using perl script?
by Athanasius
in thread How can one create a folder B in D drive and save results in a text file inside B using perl script?
by supriyoch_2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |