namespace DataProcess
{
class Program
{
static void Main(string[] args)
{
string[] files = System.IO.Directory.GetFiles(@"D:\工作\中医数据处理\DataProcess\DataProcess\bin\Debug", "1.txt");
\\想问一下这样算导入TXT文件么???
try
{
Regex regexObj = new Regex("【药品名称】.*");
Match matchResults = regexObj.Match(1.TXT);
while (matchResults.Success)
{
// matched text: matchResults.Value
// match start: matchResults.Index
// match length: matchResults.Length
matchResults = matchResults.NextMatch();
}
}
catch (ArgumentException ex)
{
// Syntax error in the regular expression
}
}
}
}
后面帮我加一下怎么添加到服务器 谢谢
是将提取出的数据添加至服务器数据库TcmHeritage中的Prescription/PrescriptionComposition表