現在、私はいくつかの非構造化テキストを解析しています使用しTHISに変換する:保存と論理的かつ簡単で提示するデータは、道
Type1
Type1 Description1 - Type1 Specification1
Type1 Description2 - Type1 Specification2
Type1 Description3 - Type1 Specification3
..more descriptions and specifications
Type2
Type2 Description1 - Type2 Specification1
Type2 Description2 - Type2 Specification2
Type2 Description3 - Type2 Specification3
..more descriptions and specifications
..more Types
など
が文字列である- スペースと返品は区切られています。 読むのは簡単ですが、これは効率的な方法ではありません。メモリ内のこのデータを格納するための最も効率的な方法だろう何
A.、および持つ:戻って最初のコンポーネント(タイプ、説明、仕様)
私の質問に、それを分解することもかなり難しいですディスクに保存する可能性(データベースにはない)?
I was thinking about XML, but I never worked with it
and hardly understand it's structure; but if you think
that is the only right way to do it, I guess I would
have to work on it!
B.複数のタイプと複数の種類の定義があるかもしれないことを考えると、Winフォームでこのデータを提示するための最良の方法だろうか?
Here, I am not sure. I can continue using textbox,
but it also does not seems to be the great way.
Maybe generate HTML and then plug it in? Seems inefficient.