This was the \r\n split (and no other) issue, that Aacini has successfully solved it with his third code.penpen wrote:I can provoke an error if i remove 4 W's from the Test.txt above:
(... code block...)
But i assume this is another issue, and has nothing to do with the upper behavior.
I have missed that the input is the temporary file created using findstr /O, so that the offsets are part of the blocks read using set /P.penpen wrote:So i found it curious, and i couldn't explain that behavior:
Why does the character read amount differs in these two solutions?
And why is the amount reduced in Aacinis code:
First line, first block: 1021 characters;
Other lines, first block: 1018 characters;
that seems to be just weird!?
So: What am i missing?
That explains the complete behavior... sometimes i really felt stupid... .