文件名:fileinfo.xmlxml代码:
<FileInfo Name="D:\WORKSHOP">
<dir Name="HF_AWMAWorkshop20_huqiuwei" LastWriteTime="2005-2-5 17:42:34">
<file Name="汉化说明.txt" LastWriteTime="2003-10-22 13:01:02" Length="4972" />
</dir>
<file Name="AKRIP32.DLL" LastWriteTime="2003-10-10 17:13:02" Length="71226" />
<file Name="awmaw.chm" LastWriteTime="2003-8-17 0:36:30" Length="313409" /></FileInfo>
这是一个关于文件的属性读取,请问怎样分别遍历读出Name,LastWriteTime和Length在listview中显示啊??
<FileInfo Name="D:\WORKSHOP">
<dir Name="HF_AWMAWorkshop20_huqiuwei" LastWriteTime="2005-2-5 17:42:34">
<file Name="汉化说明.txt" LastWriteTime="2003-10-22 13:01:02" Length="4972" />
</dir>
<file Name="AKRIP32.DLL" LastWriteTime="2003-10-10 17:13:02" Length="71226" />
<file Name="awmaw.chm" LastWriteTime="2003-8-17 0:36:30" Length="313409" /></FileInfo>
这是一个关于文件的属性读取,请问怎样分别遍历读出Name,LastWriteTime和Length在listview中显示啊??
解决方案 »
- 请问如何设置使得新窗口右上角关闭按钮不可用
- 解决Timeout expired. The timeout period elapsed prior to obtaining a connection
- 如何获得已经改变的css
- C#代码执行exe程序后,如何放到一个控件上显示?如panel
- 如何给excel.workbook 赋值啊,以下代码出错出在哪了?
- 刚学NET,有个问题请教,关于DropDownList
- 如何得到引用(Reference)的Runtime Version?
- 关于加密,解密时创建KEY的问题,进来都看看!
- 谁能介绍一个基于BS结构的进销存系统
- 如何将一个数值对应到一个enum的值?
- 在对数据库进行某项操作以后(比如删除或添加一行),并对数据库进行了更新,怎样才能确定该操作已经进行完成了,也就是返回一个消息表示
- C#应用程序,窗体如何自动适应不同的分辨率?
XmlDocument doc=new XmlDocument();
doc.Load("Filesheet.xml");
XmlNode node=doc.DocumentElement.FirstChild;
//XmlNamedNodeMap attrs=node.Attributes;
XmlAttributeCollection attrs=node.Attributes;
txtsite.Text=attrs[0].Value;
txtzhuji.Text=attrs[1].Value;
txtuser.Text=attrs[2].Value;
txtpassword.Text=attrs[3].Value;
txtzhushi.Text=attrs[4].Value;