基础知识1、var fso=new ActiveXObject("Scripting.FileSystemObject");创建一个可以操作系统文件的ActiveXObject对像的实例。2、file=fso.GetFile("C:\\test.xml"); 用ActiveXObject对像访问系统文件,可以用来检查文件是否存在。3、file=fso.C...
private void btn2_Click(object sender, RoutedEventArgs e) { using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=Test20140531;User ID...
在python读取csv格式的文件时,使用csv.reader读取文件对象,出现了line contains NULL byte的错误,如下: reader = csv.reader(open(filepath, "rU")) try: for row in reader: print 'Row read successfully!...