教你在C#中如何读写INI文件
来源:互联网 发布:软件系统开发报价单 编辑:程序博客网 时间:2024/05/21 07:06
//写INI文件
[ DllImport ( "kernel32" ) ]
private static extern bool WritePrivateProfileString ( string section ,string key , string val , string filePath ) ;
//读ini文件(字符
[ DllImport ( "kernel32" ) ]
private static extern int GetPrivateProfileString ( string section ,string key , string def , StringBuilder retVal ,int size , string filePath ) ;
//读ini文件(数字
[ DllImport ( "kernel32" ) ]
private static extern int GetPrivateProfileInt 的( string section ,string key , int def , string filePath ) ;
//////////////////////////////////////////////////////////////
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
namespace EchonComponentLibrary
{
/// <summary>
/// IniFile 的摘要说明。
/// </summary>
public class IniFile
{
private string FFileName;
[DllImport("kernel32")]
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=98789
- 教你在C#中如何读写INI文件
- 在C#中如何读写INI文件
- 如何在C#中读写INI文件
- C#中如何读写INI文件
- C#中如何读写INI文件
- C#中如何读写INI文件
- 在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在 VFP 中读写 INI 文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- 如何在C#中读写INI文件
- access升级到SQLServer如何调整字段类型及函数。JET SQL T-SQL同义词
- 电脑端口基础知识
- Asp.net 2.0 自定义控件开发[实现自动计算功能(AutoComputeControl)][示例代码下载][续]
- ASP.NET 2.0 读取配置文件[INI](示例代码下载)
- webgis 学习四 生成gst文件
- 教你在C#中如何读写INI文件
- 特殊值(标题,权限,界面编号)的移除
- 七个心理寓言
- 五一长假结束
- 有状态会话Bean(sfsb)和无状态会话Bean(slsb)的区别
- Client does not support authentication protocol
- UltraEdit Java开发环境配置
- 做有钱人并不难 四步让你成为有钱人
- David A. Solomon 上海读者见面会圆满结束