Reading Data from a file in C#

Closed
xarzu Posts 7 Registration date Sunday August 12, 2012 Status Member Last seen December 16, 2023 - Aug 13, 2012 at 12:49 AM
 Blocked Profile - Aug 13, 2012 at 01:46 AM
Hello,

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?


Related:

1 response

Blocked Profile
Aug 13, 2012 at 01:46 AM
Greetings,

Please, bare in mind that Kioskea is a mutual aid community, all answers on the forum are provided by volunteers who give their time free to help solve issues.

Therefore, it is specifically requested from Kioskea forum users correspond showing mutual respect. Therefore, when requesting assistance, the use of polite expressions,as for elsewhere in similar circumstances, is appreciated. (please, thank you, appreciate, grateful, etc.)

https://ccm.net/apps-sites/internet-archeology/ccm/10131-terms-of-use-for-ccm-respect-for-others/#politesse

Please, copy, modify and repost your message respecting the politeness charter.

We trust that you understand.

Moderator
0