📜  Powershell-文件I / O操作

📅  最后修改于: 2020-11-19 07:57:46             🧑  作者: Mango


以下是创建和读取不同类型文件的Powershell脚本示例。

Sr.No. Operation & Description
1 Create Text File

Example Script to show how to create a text file using PowerShell scripts.

2 Read Text File

Example Script to show how to read a text file using PowerShell scripts.

3 Create XML File

Example Script to show how to create a XML file using PowerShell scripts.

4 Read XML File

Example Script to show how to read a XML file using PowerShell scripts.

5 Create CSV File

Example Script to show how to create a CSV file using PowerShell scripts.

6 Read CSV File

Example Script to show how to read a CSV file using PowerShell scripts.

7 Create HTML File

Example Script to show how to create a HTML file using PowerShell scripts.

8 Read HTML File

Example Script to show how to read a HTML file using PowerShell scripts.

9 Erasing file content

Example Script to show how to erase file contents using PowerShell scripts.

10 Append Text Data

Example Script to show how to append text to a file contents using PowerShell scripts.