Hi @sns ,
it looks like in the line of "Contact = Ram" is a tab in the "Address City" column -> Hyd Hyderabad
. Within a column of a tab separated file there should no tab inside the data.
If it's not a tab but spaces it's fine.
What are you trying to achieve with the two lines in the script?
If you just want to read the content of the file with tab delimited data you can use this:
$rows = Import-Csv -Delimiter "`t" -Path "c:\users\kumar\downloads\Customers.txt"
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten