Reading Text file in with C# code
Hi all looking for some information on this. I have a text file that has sections all the way through that look like this:
creatorsname: cn=Directory Manager
I need to read through the file and when I hit the first line in this file then I need to look for things such as "uid" and store it to a variable. Also on the first line I need to capture the ou=444444 into a variable named CustNO. Then I want to store all these to variables. Once I hit a new start line with "uid" in it i want to write to a SQL database the variables into a record I have all that figured out. Then I want to clear the vars and then start over. Like admin I will need to store to a variable but I dont need the creatorsname etc. Thanks all for any help. One last thing one of the lines is called "custid:" but then there is also colons in the value. I need to read into a variable after the first colon so for example,
I used a business object class to declare all these variables.