Skip to content

Instantly share code, notes, and snippets.

@martin9700
Created May 30, 2015 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save martin9700/7484773ee807f2f2ff73 to your computer and use it in GitHub Desktop.
Save martin9700/7484773ee807f2f2ff73 to your computer and use it in GitHub Desktop.
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