Friday, June 18, 2010

Right way to read a file in itration. Powershell

Foreach ($name in (Get-Content c:\names.txt))
{
# do something with $name
}

No comments: