Tag: generic list

从List 保存到txt

我希望我的程序从两个文本文件读取到一个List 。 List是排序和清理重复项。 我希望List保存(排序和清理后)到txt文件。 但是当我查看结果txt文件时,我发现了这条消息: System.Collections.Generic.List`1 [System.String] 有谁知道如何解决这个错误? 这是我的代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Uniqpass { class Program { static void Main(string[] args) { String pfad = “C:\\Dokumente und Einstellungen\\Bektas\\Desktop\\test\\”; String pfad2 = “C:\\Dokumente und Einstellungen\\Bektas\\Desktop\\test\\”; String speichern = “C:\\Dokumente und Einstellungen\\Bektas\\Desktop\\test\\ausgabe.txt”; String datei = “text1.txt”; String datei2 = […]