Nov-26-2017, 08:31 AM
You can read it and process it line by line:
with open('big_file.txt', 'r') as f: for line in f: # do something
Text editing with python
|
|
Messages In This Thread |
Text editing with python - by UK_SPB - Nov-26-2017, 08:17 AM
RE: Text editing with python - by wavic - Nov-26-2017, 08:31 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Editing text between two string from different lines | Paqqno | 1 | 1,320 |
Apr-06-2022, 10:34 PM Last Post: BashBedlam |
|
Editing a txt document using python | duckredbeard | 3 | 2,459 |
Sep-24-2020, 02:38 AM Last Post: duckredbeard |
|
Parsing and Editing a Structured Text File | norsemanGrey | 1 | 2,432 |
Jul-11-2018, 09:51 PM Last Post: Larz60+ |