Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8938739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:41:58+00:00 2026-06-15T10:41:58+00:00

I have created an application that parses some text files and pulls out and

  • 0

I have created an application that parses some text files and pulls out and sorts the information into a table

Here is a sample

NODE    DSP Name    BUS   IDENT   STATION         REF1                  REF2

nnn1_1  S|xxxx|A1   1      1        1             S|yyyyyyyyyy|A1       S|zzzzzzz|A1

mmm1_1  R|xxxx|A1   1      1        1             R|yyyyyyyyyy|A1       R|zzzzzzz|A1

xxx1_2  R|xxxx|A1   1      1        1             R|yyyyyyyyyy|A1       R|zzzzzzz|A1

yyy1_1  R|xxxx|A1   1      1        1             R|yyyyyyyyyy|A1       R|zzzzzzz|A1

I need to check 3 things

  1. That if in the DSP Name there is a S| that it has at least one corresponding R|
  2. That the corresponding R| have identical BUS, IDENT, STATION
  3. That REF1 and REF2 match names

I can sort of brute force my way through this pulling in the table one line at a time and building a list of all the (S|) and then once have that list search for the corresponding (R|)…
I already have the these in a datatable at one point, as well as a CSV file

Is there a simpler way to do this? Like LINQ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:41:59+00:00Added an answer on June 15, 2026 at 10:41 am

    Here’s something to get you started:

    var dspStartsWithR = From row in myDataTable.Rows
                         Where (string)row("DSP Name").StartsWith("R|")
    var dspStartsWithS = From row in myDataTable.Rows
                         Where (string)row("DSP Name").StartsWith("S|")
    

    Once you get your results you’re going to have to do some combination of Substring to strip out the characters you don’t need, do comparisons, etc. My C# is rusty so sorry if the code isn’t quite right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an application that uses settings.settings to store some user specific settings
I have a multi-threaded application which parses some text and it needs to use
I have a Java application that parses pdf files in a directory and its
I have some html that is created/output from a flash application & I need
I have created an application, using ARC, that parses data from an online XML
I have created an application that connect on a web-server and reads an xml
I have created an application that records a series of longitude and latitude values
I have created an application that creates bar graph based on inputs read from
I have a problem regarding Android App. I have created an application that download
I have created an android application that calls (using kSOAP library) a SOAP based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.