Python 2.7: Convert one line into lines of 260 characters and remove all character before '_' in each line -


i must convert infile lines of 260 characters , remove content before (including character) '_'

i have been looking around hours , found way convert 260 characters.

lines = infile.readlines() [line[i:i+n] in lines(0, len(line), 640)] 

and found lot of examples wrt removing characters string or characters after argument.

please me out here...

lines = infile.readlines() [line[i:i+n] in lines(0, len(line), 640)] line.split("_")[1] 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -