How to write (big) XML to a file in C#?

前端 未结 3 422
心在旅途
心在旅途 2021-02-04 09:39

Folks,

Please, what\'s a good way of writing really big XML documents (upto say 500 MB) in C# .NET 3.5? I\'ve had a bit of search around, and can\'t seem to find anythin

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-04 10:01

    Did you consider compressing it before writing it to disk? With XML you can reach more than 10 times compressing and even more. it will probably take you less time to compress the file and write the compressed version than to read the whole 500Mb version.

提交回复
热议问题