随笔 - 26  文章 - 0 评论 - 58 阅读 - 37万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

04 2011 档案
C#操作INI文件(调用WindowsAPI函数:WritePrivateProfileString,GetPrivateProfileString)
摘要:[DllImport(kernel32.dll)]引入kernel32.dll这个动态链接库,在这个动态链接库中包含了很多的windows api 函数,在windows api 对ini文件读写的方法经常被用到,下面摘录了别人的一段较详细的资料namespace APIMethod{ /// <summary> /// Ini文件操作类 /// </summary> public sealed class IniUtility { private static string _filePath = string.Empty;//文件路径 /// <summary 阅读全文
posted @ 2011-04-28 09:43 Alvin_jstu 阅读(5459) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示