编辑:
根据建议,我已开始实施以下内容:
private string Reading (string filePath)
{
byte[] buffer = new byte[100000];
FileStream strm = new FileStream(filePath, FileMode.Open, FileAccess.Read,
FileShare.Read, 1024, FileOptions.Asynchronous);
// Make the asynchronous call
IAsyncResult result = strm.BeginRead(buffer, 0, buffer.Length, new
AsyncCallback(CompleteRead), strm);
}
private void CompleteRead(IAsyncResult result)
{
FileStream strm = (FileStream)result.AsyncState;
strm.Close();
}
我该如何去实际返回我读过的数据?