开发者

Flush a pipe associated to an NSFileHandle

开发者 https://www.devze.com 2023-04-07 17:10 出处:网络
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 NSFile

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消