Advertisement

用C#生成ANSI ini文件

阅读量:

1.ANSI格式INI类库设计与实现

复制代码
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Runtime.InteropServices;
    using System.Text;
    
    namespace  ANSI的ini
    {
    public static class PatientIniConfig
    {
        //获取或设置当前工作目录完全限定路径:public static string FInipath = System.Environment.CurrentDirectory + "文件夹名字 + "\ 配置文件夹.ini";
        public static string FInipath;
        //此变量/函数是在别处定义的,要在此处引用【DllImport("kernel32"):这叫引入kernel32.dll这个动态连接库bai】
        //利用动态库DllIAmport("kernel32")
        [DllImport("kernel32")]
        pri

全部评论 (0)

还没有任何评论哟~