Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Converting the FileSystemObject's OpenTextFile Method

Windows PowerShell

Definition: Open a file and reference the contents of the file.


See OpenAsTextStream. The Get-Content cmdlet will retrieve the contents of a file:

Get-Content test.txt

See conversions of other FileSystemObject methods and properties.
Return to the VBScript to Windows PowerShell home page

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.