Sunday, December 05, 2021

PowerShell Quick Tips: Touch file

PowerShell Quick Tips: In Linux/Unix, touching a file means to create, change or modify the timestamp of a file. Windows via cmd.exe nor PowerShell.exe does not have this tool by default. To create a file do the following in PowerShell

PS C:\> echo $null > filename.txt

No comments:

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...