目的自定义地址与文件名,导出去掉双引号,不知道哪里出错了,谢谢 Post By:2016/6/14 23:21:00 [显示全部帖子]
Dim dlg As New SaveFileDialog dlg.Filter= "TXT文件|*.txt" '设置筛选器 If dlg.ShowDialog = DialogResult.Ok Then Dim ex As New Exporter ex.SourceTableName = "表A" ex.Header= False Dim a As String =ProjectPath ex.FilePath =a ex.NewTableName =dlg.FileName ex.Format ="Delimited" ex.Export() End If Dim s As String =dlg.FileName Dim str As String = FileSys.ReadAllText(ProjectPath & s & ".txt", Encoding.Default) str = str.replace("""", "") FileSys.WriteAllText(ProjectPath & s & ".txt", str, False, Encoding.Default)