使用C#.Net在INI文件上的用户编辑行时验证INI文件 [英] Validate INI File when user Edit line on the INI File Using C#.Net

查看:127
本文介绍了使用C#.Net在INI文件上的用户编辑行时验证INI文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当用户使用C#.Net编辑INI文件中的行时,如何验证INI文件?



以及你应该知道INI文件中的输出格式



喜欢

;输出格式pcl | pdf | jpeg等等



例如:

Hi All,
How to Validate INI File when user Edit line on the INI File Using C#.Net?

and also your should know the output format in the INI File

like
;Output Format pcl|pdf|jpeg and so on

Eg:

[OutputFormat]
OutFormat=pdf



用户不会将pdf更改为pd或p。如何检查?





请帮助我。


user doesn't change on the pdf to pd or p like this. How to Check it?


Pleas help me.

推荐答案

请注意 INI 文件已过时。

也就是说,您可以使用 Windows API 交易跟他们。在这里 CodeProject 你可能会发现很多 C#Wrappers [ ^ ]。
Please note INI files are obsolete.
That said, you may use Windows API deal with them. here at CodeProject you may find many C# Wrappers[^].


这篇关于使用C#.Net在INI文件上的用户编辑行时验证INI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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