I have a loop that uses the foreach keyword:
foreach ($ln in Get-Content "c:\ATextFile.txt" )
Is it possible to find out the array index referred to by $ln during the iteration? Or do I need to create and increment a separate counting variable for each loop iteration?