Created
May 30, 2015 11:00
-
-
Save martin9700/7484773ee807f2f2ff73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Switch ($true) | |
{ | |
{$TotalCount} | |
{ | |
$Count = 0 | |
While ($Line = $File.ReadLine()) | |
{ | |
Write-Output $Line | |
$RawData.Add($Line) | Out-Null | |
$Count ++ | |
If ($Count -eq $TotalCount) | |
{ | |
Break | |
} | |
} | |
If ($Count -eq 0) | |
{ | |
Write-Warning "$Path was empty" | |
Break | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment