Parsing large (9GB) file using python

后端 未结 3 1354
陌清茗
陌清茗 2021-01-03 05:57

I have a large text file that I need to parse into a pipe delimited text file using python. The file looks like this (basically):

product/productId: D7SDF9S9         


        
3条回答
  •  一向
    一向 (楼主)
    2021-01-03 07:03

    Use "readline()" to read the fields of a record one by one. Or you can use read(n) to read "n" bytes.

提交回复
热议问题