Writing a binary file in C# to be read by C program, with pointers?

I'm moving some old C code that generates a binary file into our C# system. The problem is, the resulting binary file will still need to be read by another old C program. The original code outputs several structs to a binary file, and many of those structs contain linked lists, with *next pointers. How can I write these in C# so that the original program will still be able to read them? The old C code reads and writes the file a whole struct at a time, with freads and fwrites i.e. fread ( &file, sizeof ( struct file_items ), 1, hdata.fp ); I can't find a whole lot of info on how fwrite would output the pointers, etc.

以上就是Writing a binary file in C# to be read by C program, with pointers?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏