Parsing Complex Text File with C#
- by David
Hello, I need to parse a text file that has a lot of levels and characters. I've been trying different ways to parse it but I haven't been able to get anything to work. I've included a sample of the text file I'm dealing with. Any suggestions on how I can parse this file?
I have denoted the parts of the file I need with TEXTINEED.
(bean name:
'TEXTINEED
context:
(list '/text
'/content/home/left-nav/text
'/content/home/landing-page)
type:
'/text/types/text
module:
'/modules/TEXTINEED
source:
'|moretext|
((contents
(list (list (bean type:
'/directory/TEXTINEED
((directives
(bean ((chartSize (list 600 400))
(showCorners (list #f))
(showColHeader (list #f))
(showRowHeader (list #f)))))))
(bean type:
'/directory/TEXTINEED
((directives
(bean ((displayName (list "MTD"))
(showCorners (list #f))
(showColHeader (list #f))
(showRowLabels (list #f))
(hideDetailedLink (list #t))
(showRowHeader (list #f))
(chartSize (list 600 400)))))))
(bean type:
'/directory/TEXTINEED
((directives
(bean ((displayName (list "QTD"))
(showCorners (list #f))
(showColHeader (list #f))
(showRowLabels (list #f))
(hideDetailedLink (list #t))
(showRowHeader (list #f))
(chartSize (list 600 400))))))))
Thanks!