Expand|Select|Wrap|Line Numbers
- f+ f templatedata\poc\Ravi\Appfolder\filelist.xml
- f+ f templatedata\poc\Ravi\Appfolder\testdeploy.xml
- f - templatedata\poc\Ravi\Appfolder\testdeploy2.xml
- f - templatedata\poc\Ravi\Webfolder\apples.bmp
Expand|Select|Wrap|Line Numbers
- templatedata\poc\Ravi\Appfolder\filelist.xml
- templatedata\poc\Ravi\Appfolder\testdeploy.xml
- templatedata\poc\Ravi\Appfolder\testdeploy2.xml
- templatedata\poc\Ravi\Webfolder\apples.bmp
My code for comparing is as follows
Expand|Select|Wrap|Line Numbers
- open (MyFileHandle,"<C\:\\home\\filelist.txt") or die("File Not Found\n");
- open (MyWebFileHandle,">C\:\\home\\Weblist.txt") or die("File Open Error");
- open (MyAppFileHandle,">C\:\\home\\Weblist.txt") or die("File Open Error");
- until((eof(MyFileHandle)) && (seek(MyFileHandle,0,0) != eof(MyFileHandle)))
- {
- $Text = readline(MyFileHandle);
- if(defined($Text))
- {
- if ($Text=~/^templatedata\\poc\\Ravi\\Appfolder/)
- {
- print MyAppFileHandle $Text;
- print MyAppFileHandle "\n";
- }
- elsif ($Text=~/^templatedata\\poc\\Ravi\\Webfolder/)
- {
- print MyWebFileHandle $Text;
- print MyWebFileHandle "\n";
- }
- }
- }