StormMedic85
Programmer
I'm able to get the program to create the directory, but I can't get it to stick the files in it.
I have something like...
mkdir "dirname";
opendir (dir, dirname);
open (file, >'/dirname/filename.txt');
print file "testing 123";
That's off the top of my head so there may be a syntax error. Perl will create the directory, but all the files are still being written to the main directory from which the program is being ran.
Any suggestions?
thanks!
I have something like...
mkdir "dirname";
opendir (dir, dirname);
open (file, >'/dirname/filename.txt');
print file "testing 123";
That's off the top of my head so there may be a syntax error. Perl will create the directory, but all the files are still being written to the main directory from which the program is being ran.
Any suggestions?
thanks!