I need to read a file similar to the one below into an array and then create seperate files based on the computername entries in the file. I believe that I'd need to look for this string "----------------------------", but since there are two of those lines for each computer entry, I'm not sure how to split it out. Any advice would be appreciated.
Code:
Scan performed Tue Dec 21 09:43:55 2004
Shavlik Technologies Network Security Hotfix Checker, 3.86
Using XML data version = 1.1.2.304 Last modified on 12/15/2004.
----------------------------
COMPUTER1 (190.25.245.245)
----------------------------
* WINDOWS XP SP2
Information
All baseline security hotfixes have been applied.
* INTERNET INFORMATION SERVICES 5.1 SP2
Information
All baseline security hotfixes have been applied.
----------------------------
COMPUTER2 (190.25.245.246)
----------------------------
* WINDOWS XP SP1
Warning
The latest service pack for this product is not installed.
Currently SP1 is installed. The latest service pack is SP2.
Information
The latest Service Pack for this application has not been
installed.
Please install the latest service pack before evaluating this
system
against baseline security standards.
----------------------------
COMPUTER3 (190.25.7.124)
----------------------------
* WINDOWS 2000 SP4
Information
All baseline security hotfixes have been applied.
* INTERNET INFORMATION SERVICES 5.0 SP4
Information
All baseline security hotfixes have been applied.
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain