I'm trying find longest common sequence from text file, which contains string lines. Output should be also text file with align lines like in example:
find sequence - efghijk
output file:
abcdefghijklmno
dfefghijkrumlp
swrefghijkawsfce
wsveefghijksxl
I'm thinking about use difflib, save lines to list and then compare list[0] and list[1], find longest sequence from this two strings and then difflib(None, sequence, list[2]) etc.
But I have some trouble with coding this and I absolutely dont know how to do the output file.
Thanks for advice, Jan