I need to extract data from multiple .txt files and move them to an Excel file, using Python -


the .txt file contains 68 lines. line 68 has 5 pieces of data need extract, have no idea how. have 20 .txt files, of need line 68 read. need of extracted data, however, dropped onto 1 excel file.

here line 68 looks like:

final graph has 1496 nodes , n50 of 53706, max 306216, total 5252643, using 384548/389191 reads 

i need numbers.

use following open textfile:

f = open('filepath.txt', 'r') line in f:     #do operations each line in textfile 

repeat each text file want read

here's link python library reading/writing to/from excel. want use xlwt, sounds like


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -