zoukankan      html  css  js  c++  java
  • 生成ini文件

    setProfileString是无法直接生成ini文件的,如果不存在这个ini文件需要先创建,然后再setProfileString。示例代码
    //保存连接参数到配置文件
    if not FileExists (filePath)  then
       ll_createFileRtn = FileOpen(filePath, LineMode! , Write!, LockWrite!, Replace!)
       if ll_createFileRtn = -1 then
          messagebox('错误','参数文件:'+filePath+'创建失败')
          return
       end if
       FileClose(ll_createFileRtn)
    end if
    SetProfileString(filePath, "database", "DBMS", sle_1.text)

  • 相关阅读:
    vue
    vue
    vue
    vue
    vue
    vue
    vue
    java判断A字符串是否包含B字符串
    JAVA复制文件最快的算法
    Struts2 无后缀action请求
  • 原文地址:https://www.cnblogs.com/nickflyrong/p/4740691.html
Copyright © 2011-2022 走看看