|
Quote: SO is a Lovecraftian swamp of gelatinous ichor in comparison Well spoken, and fitting in these Halloweenish days
|
|
|
|
|
Thanks. Being married to an English major who loves Lovecraft, having a daughter who runs a bookstore who also loves Lovecraft, and having a son-in-law who also runs a different bookstore, words rub off on you.
Lots and lots of words...
Software Zen: delete this;
|
|
|
|
|
|
How could I refuse when you ask so friendly
|
|
|
|
|
|
For some reason I can't post a solution, so I will put it here:
Here is a simple example to get you started, it prints the line numbers and the text of the lines:
this.FindWords("test.txt", "private");
private void FindWords(string fileName, string searchString)
{
string line;
int count = 1;
using (TextReader reader = File.OpenText(fileName))
{
while ((line = reader.ReadLine()) != null)
{
if (line.Contains(searchString))
{
Console.WriteLine(count + " " + line);
}
count++;
}
}
}
It would be a good idea to improve this with Regex search expressions, here is a nice Regex example (don't fear it aims to take away the complexity of Regex):
Converting Wildcards to Regexes[^]
|
|
|
|
|
Thank you so much, RickZeeLand! 5+ Stars!!
|
|
|
|
|
Far as I can tell, you can't get downvoted on SO - if you're not prevented from posting at all, then your posts get deleted altogether.
It just so happens that yesterday I wanted to add a comment to a question, but apparently I don't have the reputation points to "comment". But, I was able to post as an answer. Of course, my comment was not an answer so I fully expect my response to be gone by now...
|
|
|
|
|
Yay, the swamp of gelatinous ichor strikes again
|
|
|
|
|
Hi All,
It's Thursday always found the odd, at School we had sports (or being yelled by a Welshman, early) at Uni we had high voltage labs (or ozone and bad language, early) now get to work and the Network has bust between buildings. Too close to the weekend for comfort, not close enough for 'I'll do it Monday...
|
|
|
|
|
Ah, Welshmen that says it all
|
|
|
|
|
glennPattonWork wrote: Too close to the weekend for comfort, not close enough for 'I'll do it Monday
I often find Thursdays to be my most productive (okay, "busiest") day of the week since I try to avoid starting anything big on Fridays, and it's still too far away from Monday to put anything on hold until then...and this is often when I'm trying the hardest to get something off my plate for the next week...
It's all about Thursdays it seems.
|
|
|
|
|
Most Asians share transport. (4)
Sorry guys incorrect clue.
Here's the correct one.
South league evaporates. (5)
modified 31-Oct-19 4:57am.
|
|
|
|
|
Steam ?
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
Yeah! You're up tomorrow.
|
|
|
|
|
Being a contractor right now, the fact that one of the permanent is rather, let's average, is good for me, logically... It makes me look good!
(and since they pay me a truck load, I can't complain )
Despite that, I found it sometimes tiresome, it feels like he doesn't now how to read code and want me to do his work occasionally, when he got scared by some piece of code and also sometimes butcher perfectly fine code into a buggy monster, sigh...
I have to strike the delicate balance between being helpful and teaching what I know, and tell people to leave me alone...
Oh well... I guess it's a growing experience, haha, just wanted to rant!
|
|
|
|
|
The pay package also includes some teaching salary and damage compensation.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
KarstenK wrote: damage compensation
Damage to whom? :evil grin:
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
For suffer the pain working with some stupid bullshit-bingo talking collegues.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Super Lloyd wrote: I guess it's a growing experience For the permenent, yes (he is 'average' not 'dull', right?).
|
|
|
|
|
Quote: You're simply the best, better than all the rest
Better than anyone, anyone I ever met
|
|
|
|
|
Mm.... not working for MiB here?!
|
|
|
|
|
In a similar situation although reversed; he is a contractor, I am the permie-burger! He's enthusiastic, loud and hasn't yet learned to wait before interrupting my flow of thought, but he's a nice guy who may succeed eventually as he matures and learns.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
That sounds like Boris Johnson
|
|
|
|
|
sucks when the expensive contractor is less good than the perm!
|
|
|
|