在 C 中将文件发送到 stdout
我需要将纯 PPM 文件写入标准输出。我让它创建了 PPM 文件和所有内容,我只是不知道如何让它发送到标准输出。
非常感谢您提供的任何帮助,
I need to write a plain PPM file to the standard output. I have it creating the PPM file and everything, I just cannot figure out how to get it to send it to the standard output.
Any help you can provide is greatly appreciated,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你应该查找这些函数:open,阅读, 写入,关闭。
那么您的代码将类似于:
请记住这是未经测试的。
you should look up these functions: open, read, write, close.
then your code will look something like:
please keep in mind this is untested.