任何天才都可以帮助“自动读取多个XML文件". [英] any genius can help "auto Read more then one XML file"

查看:83
本文介绍了任何天才都可以帮助“自动读取多个XML文件".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是我有一个新闻程序,给出了按日期和时间保存的许多XML文件输出,例如(15 03 2011 15 22 49)保存在数据库文件夹中.
我需要以下方面的帮助:
-auto每隔(时间)从源数据库文件夹到不同的目标文件夹ex:(c:\ news)后自动获取这些文件-c#中的控制台应用程序

-自动按时间和日期逐一读取XML文件,而无需每隔(时间")从(c:\ news)文件夹复制文件,并更新新的数据库表.

有什么天才的程序员可以帮助我吗?

my problem that i have a news program that given many XML files output saved by date and time like(15 03 2011 15 22 49)in database folder.
i need help in :
-auto get those files after every (time)from source database folder to deferent destination folder ex:(c:\news) -console application in c#

-auto read The XML files one by one by time and date without replication the files from (c:\news)folder every ("time") and update new database tables.

is there any genius programmer can help me

推荐答案

您不需要按计划进行.只需使用FileSystemWatcher对象来查看相关文件夹中的新文件,然后触发线程以执行对该文件进行的所有操作.
You don''t need to do it on a schedule. Just use the FileSystemWatcher object to watch for new files in the folder in question, and then fire off a thread to do whatever needs to be done with the file.


这篇关于任何天才都可以帮助“自动读取多个XML文件".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆