Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Scripting >> Powershell >> Syntax >> Reading from or Writing to a file

Reading from a file =================== $a = Get-Content "c:\servers.txt" foreach ($i in $a) {$a} Writing to a Simple File ======================== $a = "Hello world" $a | out-file test.txt or use > to redirect output of the script results to a file .\test.ps1 > test.txt
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]