I have recently changed my script to import data from a csv file to a tab separated file. The issue that I am having is when there is a blank value in the tab separated file in say $var1 it does not treat $var as either NULL or "", I was thinking there is a tab stored in the variable, so I striped the variabled from containing tabs, the same issue still occurring. The tab separated file contains 6 columns and 5 rows and the headers are added when the file is imported using the below command.
My question is what will be read from a tab separated file if one of the columns is blank?
The command used to import the files contents.
$List = Import-Csv C:\Users\jsmith\Documents\file.out -Delimiter "`t" -Header "ID","Date","First Name","Last Name","Gender"