I found some data I want to work with as a tab-delimited text file and wrote this line of PowerShell to put it in an object (replace URL with address of tab-delimited file).
$obj = ConvertFrom-Csv ((Invoke-WebRequest URL).Content) -Delimiter "`t"
The file is rather large though (~150 MB) and it takes a while to download - but according to the ISE status bar, that part seems to be going fine.
It’s the next step where things start going bad I think.
Instead of parsing the data into an object, it works for a while, then stops. Only working it’s way through about 35,000 of the records (as opposed to the 700,000 or so that exist in the file).
Earlier I just downloaded the file from the web manually, then used Import-Csv to put the file into an object… that seemed to work fine.
Any idea why this seems to be timing out? It’s kind of frustrating to pull down a data set and find that it’s only a small portion of the total data needed.