How to read a specific part in text file?

后端 未结 2 565
傲寒
傲寒 2020-12-22 11:46

I have a really big text file (500mb) and i need to get its text. Of course the problem is the exception-out of memory, but i want to solve it with taking strings (or char a

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-22 12:13

    You can use StreamReader class to read parts of a file.

提交回复
热议问题