How can I read an XML file into a buffer in C?

后端 未结 8 1009
逝去的感伤
逝去的感伤 2021-02-01 11:03

I want to read an XML file into a char *buffer using C.

What is the best way to do this?

How should I get started?

8条回答
  •  忘掉有多难
    2021-02-01 11:55

    I believe that question was about XML parsing and not about file reading, however OP should really clarify this.
    Any way you got plenty example how to read file.
    Another option to xml parsing in additional to sgm suggestion will be Expat library

提交回复
热议问题