What is a superfast way to read large files line-by-line in VBA?

后端 未结 9 549
南方客
南方客 2020-12-01 09:46

I believe I have come up with a very efficient way to read very, very large files line-by-line. Please tell me if you know of a better/faster way or see room for improvemen

9条回答
  •  盖世英雄少女心
    2020-12-01 10:32

    I would think , in a large file scenario using a stream would be far more efficient, because memory consumption would be very small.

    But your algorithm could alternate between using a stream and loading the entire thing in memory based on the file size. I wouldn't be surprised if one is only better than the other under certain criteria.

提交回复
热议问题