異步編程-異步讀取文件

這篇文章我們學習如何用異步編程來讀取文件。 使用System.IO.Stream類的異步調用方法,對文件out.txt進行異步讀操作。 運行結果: 源代碼: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using Syste
相關文章
相關標籤/搜索