Apr-20-2020, 04:48 AM
Thanks for the reply!
I want to print all my lines I'm looking for into a text file.
Each 'IF' block would find a line and it'll print it to my OutPut file.
The output file will look like this:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
In Perl, it is as easy as 123 but in Python, this simple task is very complicated and I do not understand how to get around it. "does nothing to change the logic of the program" I would agree with you on this but it seems in Python it does change something. As soon As I move the 'IF' block from the first to last the printing stops.
I want to print all my lines I'm looking for into a text file.
Each 'IF' block would find a line and it'll print it to my OutPut file.
The output file will look like this:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
Start Time, End Time, Run Time, Test Program Name:
In Perl, it is as easy as 123 but in Python, this simple task is very complicated and I do not understand how to get around it. "does nothing to change the logic of the program" I would agree with you on this but it seems in Python it does change something. As soon As I move the 'IF' block from the first to last the printing stops.