Why do I get newlines in the following:
[string[]]$lines= "001 AALTON, Alan .....25 Every Street","002 BROWN, James .... 101 Browns Road","008 FLANAGAN, Lesley .... 1 Lovers Lane"
foreach ($line in $lines) {
$line
}
Output:
001 AALTON, Alan .....25 Every Street
002 BROWN, James .... 101 Browns Road
008 FLANAGAN, Lesley .... 1 Lovers Lane
The foreach docs make no mention of newlines. My loop does not contain newline instruction. And it's obviously not in the source data?
Any explanation would be appreciated.