如何在Windows应用程序中使用c#读取.pgr文件。 [英] How to Read .pgr file using c# in Windows Application.

查看:164
本文介绍了如何在Windows应用程序中使用c#读取.pgr文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我有一个Windows应用程序,在这个应用程序中我想读取.pgr文件作为此应用程序的一部分。我在谷歌搜索,但我没有得到我想要的确切解决方案。所以任何人都可以建议我如何使用C#或C ++阅读.pgr文件。



预先感谢

Mohan G

Hi Friends,

I have a Windows Application, in this Application i want to Read .pgr files as a part of this Application. i have searched in google but i did't get exact solution what i want. So can any one suggest me How to Read .pgr files using C# or C++.

Thank's in Advance
Mohan G

推荐答案

可能想查看一些字符串解析器和FastColoredTextbox文章,看看如何对编程语言进行解析。我对.pgr文件一无所知,但如果在记事本中打开时它是Xml格式,你可以使用.Net XmlDocument / XPath。除了从头开始构建解析器可能有助于使用RegularExpressions(您可能已经知道)。
May want to have a look at some string parsers and the FastColoredTextbox article to see how parsing is done for programming languages. I don't know anything about .pgr files but if it's in Xml format when opened in notepad you could use the .Net XmlDocument/XPath. Other than that to build a parser from scratch might help to use RegularExpressions (you probably already knew that).


这篇关于如何在Windows应用程序中使用c#读取.pgr文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆