exception while Read very large file > 300 MB

前端 未结 5 2085
时光取名叫无心
时光取名叫无心 2020-12-17 08:04

My task is to open a large file in READ&WRITE mode and i need to search some portion of text in that file by searching starting and end

5条回答
  •  不知归路
    2020-12-17 08:50

    Does your search pattern match more than one line? If not then the easiest solution is to read line by line :). Simple really

    But if the search pattern matches multiple lines then you need to let us know because searching line by line will not work.

提交回复
热议问题