I've got a .txt file that I'm trying to get-content from, and I'm struggling to turn the gc into a variable... I'm running:
$variablesfile = gc .\Variables.txt
I've also put the entire filepath here instead of just .\Variables.txt, and I know I'm in the right directory because ISE is auto-filling the filepath and filename for me... But when I type $variablesfile it doesn't return any results... If I just go to PowerShell and type:
gc .\Variables.txt
it displays the information I want without issue, but I can't seem to declare it as a variable... Also, when I just type $VariablesFile to get the results, it doesn't see it as an existing variable.