Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,我想将 .wiq 文件中的所有文本作为 C# 中的字符串读取。有可能吗?因为普通的 StreamReader 只适用于 .txt!
这对我有用。
using( System.IO.StreamReader sr = new System.IO.StreamReader(@"C:\temp\queryName.wiq") ) { string allLines = sr.ReadToEnd(); }