Select () for multiple file I / O in C #?
1 answer
If you are waiting for someone else to write the file, you can use System.IO.FileSystemWatcher
and look for change events. Otherwise, you can always use FileStream.BeginRead
and FileStream.BeginWrite
for asynchronous IO. None of them are very similar in select()
terms of interface, but they can achieve the desired result of fast asynchronous I / O.
+1
source to share