Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

tac in Powershell: read a file line by line in reverse order, last line first ...

$
0
0

Hi is there an elegant way to read huge csv-data-files in reverse orders?

Each line contains in ASCII "date,time,msec,priceAsk,priceBid,vol" with the oldest date at the beginning. Is there a way to read them line by line in reverse order without loading the whole file in total in the memory, split it, and use it (or save it) in reverse orders?

Thanks in advance!


Viewing all articles
Browse latest Browse all 6937

Trending Articles