How to resolve the algorithm File size step by step in the PowerShell programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm File size step by step in the PowerShell programming language

Table of Contents

Problem Statement

Verify the size of a file called     input.txt     for a file in the current working directory, and another one in the file system root.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm File size step by step in the PowerShell programming language

Source code in the powershell programming language

Get-ChildItem input.txt | Select-Object Name,Length
Get-ChildItem \input.txt | Select-Object Name,Length


  

You may also check:How to resolve the algorithm Copy stdin to stdout step by step in the Dart programming language
You may also check:How to resolve the algorithm Seven-sided dice from five-sided dice step by step in the JavaScript programming language
You may also check:How to resolve the algorithm Enforced immutability step by step in the Swift programming language
You may also check:How to resolve the algorithm Compare sorting algorithms' performance step by step in the Haskell programming language
You may also check:How to resolve the algorithm Long multiplication step by step in the NetRexx programming language