Getting File Data Read and Arranged

Started by
0 comments, last by ApochPiQ 11 years, 8 months ago
There are some cool classes and tricks and short cuts in C#. I know this but I have not worked with C# enough to have them memoried.

One cool trick is this. If you read from a file data that is arranged in a similar line-by-line structure where each line is arranged in columns spaced out by tabs, the data can be read into a kind of class in C# and then you can parse out one column of data by simply doing a "for each" command. Does anyone know off-hand how this is done?
Advertisement
One method I know of would be to use the TextFieldParser class. There are any number of ways to accomplish that, though, depending on how much boilerplate code you feel like writing :-)

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

This topic is closed to new replies.

Advertisement