how to extract data betwen two stings from a file and store extracted data into another file using python script | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

how to extract data betwen two stings from a file and store extracted data into another file using python script

10th Jan 2017, 10:35 AM
Gopikrishna A
Gopikrishna A - avatar
3 Antworten
+ 1
Could you please provide an example?
10th Jan 2017, 6:14 AM
Dao
Dao - avatar
+ 1
assume that a txt file containing data as below line1 start line2 line3 line4 end line5 now i want to extract data between "start" and "end" strings from the file and save the data into new file... can any one write the code......?
10th Jan 2017, 10:32 AM
Gopikrishna A
Gopikrishna A - avatar
+ 1
thank u it's working.... u did a great job
10th Jan 2017, 12:55 PM
Gopikrishna A
Gopikrishna A - avatar