SoFunction
Updated on 2025-04-05

.NET reads all files under directories to match text emails


using System;
using ;
using ;
using ;
using ;
namespace Test
{
class FiEmail
{
public static void Main(string[] args) {
("Please enter the content path:");
string[] fs=(args[0]);
if(fs!=null){
string jobsPattern=@"([\w-]+(\.\w+)*@([\w-]+\.)+\w{2,3})";
Regex rx = new Regex(jobsPattern, | | );
foreach(string s in fs){
("match");
string asR=(s);
MatchCollection matches = (asR);
if(matches!=null && >0) {
string argsP="";
for(int loopI=0;loopI<;loopI++){
argsP+=(matches[loopI].Groups[0].Value)+ ;
}
W((new char[]{'\n'}));
}
(s);
}
}
();
}
public static void W(string ids){
string paths=(@"C:\Documents and Settings\Administrator\Desktop\GC\","");
using ( sr = new (paths,true)){
(ids);
}
}
}
}