C# searching a text file for keywords for a word starting with # and capturing the rest of word?
Posted on 2007-10-10
I have the following data in a text file - I can find the file and read it line by line but how do I capture the part '0639502245' out of the following text? Is line by line the way to go or read in the whole file to buffer and then how to capture just the ser #?
SCSI device ID: port 1, ch 0, id 6, lun 0, type Medium Changer 8
Device: Plasmon Midrange-G H05d ser #:0639502245 std :3
Assume much bigger file! Thanks! -Karl66