<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reading Data from a file in C# in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/reading-data-from-a-file-in-c/m-p/89592#M369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some cool classes and tricks and short cuts in C#.&amp;nbsp; I know this but I have not worked with C# enough to have them memoried.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One cool trick is this.&amp;nbsp; 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.&amp;nbsp; Does anyone know off-hand how this is done?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2012 04:02:00 GMT</pubDate>
    <dc:creator>wmthompson</dc:creator>
    <dc:date>2012-08-13T04:02:00Z</dc:date>
    <item>
      <title>Reading Data from a file in C#</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/reading-data-from-a-file-in-c/m-p/89592#M369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some cool classes and tricks and short cuts in C#.&amp;nbsp; I know this but I have not worked with C# enough to have them memoried.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One cool trick is this.&amp;nbsp; 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.&amp;nbsp; Does anyone know off-hand how this is done?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 04:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/reading-data-from-a-file-in-c/m-p/89592#M369</guid>
      <dc:creator>wmthompson</dc:creator>
      <dc:date>2012-08-13T04:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data from a file in C#</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/reading-data-from-a-file-in-c/m-p/89593#M370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this entry on StackOverflow should provide some help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/1028224/c-sharp-read-text-file-containing-data-delimited-by-tabs"&gt;http://stackoverflow.com/questions/1028224/c-sharp-read-text-file-containing-data-delimited-by-tabs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To give a brief outline on a simple scheme, suppose you have a file containing the following (\t indicates a tab)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;MyClass\tValue1\Value2&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would then read a line from the file, split it into its constituent elements. Then you could send these elements as arguments to a function "createObjectFromText" that looks at the first argument ("MyClass"), decides what object should be created, and then creates such an object from the other parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this provides some guidance on creating objects from a textual source.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 04:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/reading-data-from-a-file-in-c/m-p/89593#M370</guid>
      <dc:creator>AlexanderMagnusson</dc:creator>
      <dc:date>2012-08-13T04:39:54Z</dc:date>
    </item>
  </channel>
</rss>

