ParseForm.cs 水深无声 2022-02-02 06:55 175阅读 0赞 `using` `System;` `using` `System.Collections.Generic;` `using` `System.ComponentModel;` `using` `System.Data;` `using` `System.Drawing;` `using` `System.Text;` `using` `System.Windows.Forms;` `using` `System.IO;` `using` `System.Text.RegularExpressions;` `using` `Packet;` `namespace` `TSProducer` `{` `` `public` `partial` `class` `ParseForm : WeifenLuo.WinFormsUI.Docking.DockContent` `` `{` `` `private` `string` `gFilePath;` `` `public` `ParseForm()` `` `{` `` `InitializeComponent();` `` `}` `` `public` `void` `setGFilePath(` `string` `filePath)` `` `{` `` `gFilePath = filePath;` `` `}` `` `public` `void` `parseCdt(` `string` `filePath)` `` `{` `` `//setGFilePath(filePath);` `` `//FileStream fs = new FileStream(gFilePath, FileMode.Open, FileAccess.Read);` `` `//BinaryReader br = new BinaryReader(fs);` `` `//if (br.PeekChar() != -1)` `` `//{` `` `// string str = Convert.ToString(br.ReadString());` `` `// str = str.Replace(CDT.CDTTableStr, "");` `` `// string title = "------Parse started: Table : CDT------\r\n";` `` `// string parseFile = "Parse -> " + gFilePath + "\r\n";` `` `// string result = "[Content]: " + str + "\r\n";` `` `// textBox1.Text += title + parseFile + result;` `` `//}` `` `//br.Close();` `` `//fs.Close();` `` `}` `` `}` `} 本文转自静默虚空博客园博客,原文链接:http://www.cnblogs.com/jingmoxukong/archive/2011/07/29/2120869.html,如需转载请自行联系原作者`
还没有评论,来说两句吧...