FOR /F Text Reading: Retain Empty Lines & Dynamic Skip?
Posted: 27 Jul 2020 16:43
I have some problems with reading text files through FOR /F.
1 When a certain condition is met while looping through the file, I need to jump forward to a specific line. So I am looking for a way to change the value of "skip=" inside the loop.
2 I need to deactive the autoskip of empty lines, since it will mess up (desync) my algorithm.
3 Additionally, it would be great to get the current line number from FOR natively without having to count manually using a dedicated variable.
1 When a certain condition is met while looping through the file, I need to jump forward to a specific line. So I am looking for a way to change the value of "skip=" inside the loop.
2 I need to deactive the autoskip of empty lines, since it will mess up (desync) my algorithm.
3 Additionally, it would be great to get the current line number from FOR natively without having to count manually using a dedicated variable.