read from text file only if criteria is met

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ckerscher
    New Member
    • May 2007
    • 1

    read from text file only if criteria is met

    I'm a true novice with C# and ignorant. I need to read into text boxes or other suitable controls data from a text file. The lines that I don't want to import begin either with the # character and a space or the # character and the numeral 2 or the # character and an asterisk. The first line that I need to import is a date (01/01/07) as is the second. The next lines (yes lines) are between a line that begins #2 and a line that begins #* then the remaining of the file needs to be imported into other controls where if the line is a date like above into a textbox, the next date into a text box and the remaining into a text box or other suitable control
    Thanks so much for whatever you help you can give me.
    Charlie
Working...