My dilemma looks extremely simple but I can’t quite get it right.
I have an array of characters which was the result of typed input:
$f = $Input.ToCharArray()
I get an error message from Powershell when I subsequently run the statements
$ch = $f $x = $ch.Contains()
complaining that the System.Char class does not have the Contains method, which is true.
It’s obvious there is a distinction between CHAR and STRING classes ???
How do I “get around” this? Would be grateful for any appropriate solution, advice or tip.