Flush a pipe associated to an NSFileHandle
I am reading piped output from a console application via an NSFileHandle in Cocoa. How can I flush the stream associated to that file handle. If I could get a FILE* object fro开发者_JAVA百科m the NSFileHandle I could call fflush(). Is there a way around this?
I believe the equivalent in NSFileHandle
is -synchronizeFile
.
精彩评论