test = CopyFile(path, SRCDIR^"\\file.conf");
if(FileGrep(path, searchstring, returnline, linenumst, RESTART)==0) then
linenumend = linenumst + 1;
test = FileDeleteLine("httpd.conf", linenumst, linenumend);
endif;
test = CopyFile("httpd.conf", path);
So, I copy the file to SRCDIR (get a good return code on that) then filegrep for my line to delete (get good return code) then do a FileDeleteLine (and I get a -2 can't find file error) then try to copy the should-be-edited file back to my directory and I get a funky -267XXXXXX error!!
Is my problem that SRCDIR is not found or is it a FileDeleteLine problem?
Confused!