Example accesses array out of bounds

args.length >= 4 checks if a fourth element is in the array but then it
accesses [4], the fifth element.
Windows delimiter is accepted as standard

If the standard delimiter is \n, a \r\n is accepted as well. Therefore a
marker was introduced to indicate that specific case. The delimiter
length is variably set to the windows delimiter size then. To prevent
failing in reading input with windows line endings.