Showing posts with label File-Handling. Show all posts
Showing posts with label File-Handling. Show all posts

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!

#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...