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.
正如主题所述:如何在不使用 的情况下将波形文件保存到文件夹中SaveFileDialog?
SaveFileDialog
我通常按.SaveAs . 我可以使用保存,SaveFileDialog但有没有办法保存到目录中的特定文件夹@"~/test/" + filename ?而不是使用SaveFileDialog?
.SaveAs
@"~/test/" + filename ?
例如,您可以将其转换为字节数组 ( bytes),然后像这样保存:
bytes
using (FileStream fs = File.Create(@"C:\yourFile.wav")) { fs.Write(bytes, 0, bytes.Length); }