Click here to Skip to main content
15,902,893 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is there an easier way to find things in C# Pin
Heath Stewart28-Sep-05 8:16
protectorHeath Stewart28-Sep-05 8:16 
GeneralRe: Is there an easier way to find things in C# Pin
Dave Everett28-Sep-05 9:44
Dave Everett28-Sep-05 9:44 
GeneralRe: Is there an easier way to find things in C# Pin
Heath Stewart28-Sep-05 9:58
protectorHeath Stewart28-Sep-05 9:58 
GeneralRe: Is there an easier way to find things in C# Pin
Dave Everett28-Sep-05 10:36
Dave Everett28-Sep-05 10:36 
GeneralRe: Is there an easier way to find things in C# Pin
Heath Stewart28-Sep-05 12:06
protectorHeath Stewart28-Sep-05 12:06 
AnswerRe: Is there an easier way to find things in C# Pin
Niklas Ulvinge28-Sep-05 8:53
Niklas Ulvinge28-Sep-05 8:53 
AnswerRe: Is there an easier way to find things in C# Pin
Tom Larsen28-Sep-05 9:03
Tom Larsen28-Sep-05 9:03 
QuestionReading text from an HTML file based on its tags. Pin
Red_Wizard_Shot_The_Food28-Sep-05 6:27
Red_Wizard_Shot_The_Food28-Sep-05 6:27 
I have an HTML file i want to read certain parts of based on the tags round them BUT i dont want to read the tags in to the string im reading the text into after i have located it.

So here is what i have been doing so far:

1) Read in the HTML file to a string.
2) Read through the string char by char placing returns where tags are. So that each tag is shunted onto its own line and so is each peice of untagged text.
3) Read line by line checking the tags.If its the tag i want read the entire line bellow then stop reading and start checking again.

This was easy to code as it was just a matter or adding returns when it read a "<"or ">"
Then reading line by line, ignoring any lines that where not direclty below the tags i wanted..

But I feel like I'm double handling the data, would my program be more efficient if it looked for the lines I wanted while it was scanning for tags during stage 2 where it was previously just adding returns.

SO it would:
1) Read through line by line.
2) See a tag
3) Check the tag
4) If OK read the text to the next "<"

Or are both ways close enough in efficienty to not warrent a rewrite of the code?
AnswerRe: Reading text from an HTML file based on its tags. Pin
Dario Solera28-Sep-05 6:55
Dario Solera28-Sep-05 6:55 
AnswerRe: Reading text from an HTML file based on its tags. Pin
Heath Stewart28-Sep-05 7:21
protectorHeath Stewart28-Sep-05 7:21 
AnswerRe: Reading text from an HTML file based on its tags. Pin
Dan Neely28-Sep-05 6:56
Dan Neely28-Sep-05 6:56 
Question.Net Application not Runing on Test System Pin
Zishan Haider28-Sep-05 6:07
Zishan Haider28-Sep-05 6:07 
QuestionAllowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 5:41
Dan Neely28-Sep-05 5:41 
AnswerRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 7:08
Dan Neely28-Sep-05 7:08 
AnswerRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 8:09
protectorHeath Stewart28-Sep-05 8:09 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 8:13
Dan Neely28-Sep-05 8:13 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 8:22
protectorHeath Stewart28-Sep-05 8:22 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 9:03
Dan Neely28-Sep-05 9:03 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 9:16
protectorHeath Stewart28-Sep-05 9:16 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 9:28
Dan Neely28-Sep-05 9:28 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 9:30
protectorHeath Stewart28-Sep-05 9:30 
QuestionC# and SQL DB Script Pin
| Muhammad Waqas Butt |28-Sep-05 5:34
professional| Muhammad Waqas Butt |28-Sep-05 5:34 
QuestionCrystal reports Pin
Member 181155428-Sep-05 4:52
Member 181155428-Sep-05 4:52 
AnswerRe: Crystal reports Pin
dbetting28-Sep-05 9:27
dbetting28-Sep-05 9:27 
QuestionBook Review? Pin
Russell Jones28-Sep-05 4:30
Russell Jones28-Sep-05 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.