just starting to learn loops and arrays. i understand how to call a single variable in an array ie:
$animals = gc "c:\temp\animals.txt"
foreach ($animal in $animals)
{write-host "The"$animal "sleeps tonight."}
what i'm trying to figure out is how to call two different variables from two different arrays...ie:
$animals = gc "c:\temp\animals.txt"
$colors = gc "c:\temp\colors.txt"
this is the part where I'm confused. how do I call a foreach loop to cycle though both files simultaneously?
desired output: The white lion sleeps tonight, The black panther sleeps tonight, etc...