Friday, April 17, 2015

#52 : How to display fields of a Delimited file?

I think that delimited file might be a confusing term, but I simply mean with a file which has fields into it separated by a delimiter such as pipe(|) or tilde (~). In course of programming, you may see several such situations where you will have to read a CSV or something similar to that.

Okay, let's open Powershell command prompt and check the below code which will demonstrate you how to do it. Below is the piece of code which you can use :



With the above example, you can see that first field will be 0, second field will be 1 and so on.

Hope, you enjoyed reading!

1 comment:

  1. Fix your Outlook Account Sign in, Login or Sign up issue by Microsoft Outlook mail customer helpline number USA 1-818-492-9002. We fix all Outlook Account issue like Sign in, Sign up, login, password issue etc.

    ReplyDelete

#112: How to handle xml document in Powershell?

 In PowerShell, you can handle XML data using various cmdlets and methods provided by the .NET Framework. Here's a basic guide on how to...