Answers for "count number of lines in csv without opening it"

0

count number of lines in csv without opening it

# in powershell
$lines = 0
$fileReader = New-Object IO.StreamReader 'NAME_OF_YOUR_CSV.csv'
while ($fileReader.ReadLine() -ne $null)
{
	$lines++
}
$fileReader.close()
echo $lines
Posted by: Guest on April-09-2021

Code answers related to "count number of lines in csv without opening it"

Browse Popular Code Answers by Language