I'm having a problem when working on my project and I need your help
I have a text file with multiple lines and each line have a different length .
what I want to do is to take the line with the highest length and save it's length as max, and then start processing all the other lines and take the last non null value of the data, and make a copy of this value along the same line until we reach the max length.
e.g
a b c d e f g r e
q w e r t y
q w e t e q w r t e q w e
etc...
should look like :
a b c d e f g r e e e e e
q w e r t y y y y y y y y
q w e t e q w r t e q w e
thanks in advance.