How to use C# to parse a glossary into database?

Posted by Yaaqov on Stack Overflow See other posts from Stack Overflow or by Yaaqov
Published on 2010-03-26T13:43:13Z Indexed on 2010/03/26 13:53 UTC
Read the original article Hit count: 192

Filed under:
|
|
|

This should be a simple one, but I'm a beginner with C#.

Given a glossary list in the following format:

aptitude  
ability, skill, gift, talent

aqueous  
watery

arguably  
maybe, perhaps, possibly, could be

How can I parse this, and insert into a database table in the format:

TABLE: Term_Glossary
================================================
Term_Name  | Term_Definition                   |
================================================
aptitude   | ability, skill, gift, talent      |
------------------------------------------------
aqueous    | watery                            |
------------------------------------------------
arguably   | maybe, perhaps, possibly, could be|
================================================

Any help would be appreciated - thanks.

© Stack Overflow or respective owner

Related posts about parsing

Related posts about c#