Hello, Im having trouble getting my C directory files and directories on seperate terms, from there I want to write the files from C into one text file for reference, and all the directories from C into another text file. this is what I have so far, it prints files but not the files from C, infact im not sure where theyr coming from :)Thank you.
opendir C, "C:\\"; @C_DIR = (readdir(C)); closedir C; open (Ctxt, ">full system memory\\C_DRIVE.txt"); foreach $C_FILE (@C_DIR) { if (-f "C:/$C_FILE") { print Ctxt "$C_FILE"; print Ctxt"\n"; } } close (Ctxt);
In reply to storing all file info by Baphi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |