Question about loadstrings() function

Good question. I believe this might be expected behavior. After some digging, it looks like loadStrings() utilizes a BufferedReader:

Inside, we can see readline() being called, and according to the docs:

Returns:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached

In short, it’s tossing the empty lines.

1 Like