ChinaUnix.net
相关文章推荐:

ini文件 对话框

有一a.ini文件。 ------------------- disk_id=5540 ipaddr=192.168.0.200 ---------------- 如何取出5540,192.168.0.200 谢谢!!

by udb6688 - C/C++ - 2008-07-17 19:17:24 阅读(1682) 回复(11)

相关讨论

ini 文件文件是Windows系统中一类比较重要的文件,通常用来存放系统或者应用程序的配置信息,以方便系统或者应用程序在初始化时再次读入。比如 Windows系统中的配置文件win.ini和system.ini,它们就主要存放系统启动或用户登陆时的系统信息。其结构如下: [My Section] dir=frob My Section 是段名; dir是键(key), frob是键值; 应用通常是通过锻炼和键,得到键值。 在python中读写ini文件,使用的方法是: class RawCon...

by TerryHao - Python文档中心 - 2008-03-19 12:58:10 阅读(1003) 回复(0)

[code]package com.3a.util.paraconf; /** * ini configuration file helper. * By 3a * 2007-1-16 */ import java.io.*; import java.util.*; import java.util.regex.*; import java.lang.reflect.*; import com.3a.test.FtpSection; public class ConfigFile implements ConfigFileListener { String PATTERN_REM = "^#.*$"; String PATTERN_SECTION = "^\\[([^\\]]*).*$"; String PATTERN_PROPERTY = "(^[^#][^=...

by awk就是awp加ak - Java - 2007-01-22 09:50:33 阅读(1976) 回复(9)

import java.io.*; public class t2 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try{ File read = new File("c:\\1.ini"); File write = new File("c:\\2.ini"); BufferedReader br = new BufferedReader( new FileReader(read)); BufferedWriter bw = new BufferedWriter( new FileWriter(w...

by meteorm - Java文档中心 - 2009-01-07 09:49:44 阅读(758) 回复(0)

研究JAVA来读取ini文件一下午,终于搞出来了一个。但是比较遗憾的是在WEB应用中还是不能成功! 现在我将我的代码贴出来: package tmp; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Properties; public class Test { public static void main(String[] args){ Properties p = new Properties(); FileInputStream fs = null...

by hkebao - Java文档中心 - 2008-11-14 21:25:41 阅读(767) 回复(0)

在shell中要读取ini,直接通过. ./FILENAME就可以了 perl有没有什么比较方便的方式或者module中的预定义函数可以用来读取ini啊? 难道只有通过分析ini将=前的内容和变量名称比较再去后面的值来读取ini麽? 请高手指教,谢谢!

by risepp - Perl - 2008-03-27 22:13:08 阅读(4515) 回复(4)

CODE: [Copy to clipboard] package com.3a.util.paraconf; /** * ini configuration file helper. * By 3a * 2007-1-16 */ import java.io.*; import java.util.*; import java.util.regex.*; import java.lang.reflect.*; import com.3a.test.FtpSection; public class ConfigFile implements ConfigFileListener { String PATTERN_REM = "^#.*$"; String PATTERN_SECTION = "^\\[([^\\]]*).*$"; String PATTERN_PROPERTY...

by awk就是awp加ak - Java文档中心 - 2007-01-29 09:59:24 阅读(710) 回复(0)

if(sessions!=null) { sessionurl = (String)sessions.getAttribute("sessionurl"); loginuser = (String)sessions.getAttribute("loginuser"); user = (String)sessions.getAttribute("user"); password = (String)sessions.getAttribute("password"); machineryid = (String)sessions.getAttribute("machineryid"); machineryph = (String)sessions.getAttribute("machineryph"); if(user==null) { out.println(""); ...

by xhc800325 - Java文档中心 - 2006-02-23 15:54:34 阅读(372) 回复(0)

从phpinfo()函数中可以看到如下: Configure Command './configure' '--with-apxs2=/usr/local/apachenossl/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-gd' '--with-freetype-dir=/usr' '--with-png=/usr' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-xml' '--enable-calendar' '--with-config-file-path=/usr/lo...

by yesright - 服务器应用 - 2004-10-22 21:53:45 阅读(910) 回复(5)

$BASE$00=NLMSNMP,\pipe\sybase\query $BASE$01=NLWNSCK,zb_pc2,5000 我不知道这两个用的是什么协议?起什么作用的呢?

by 小无赖 - Sybase - 2003-12-15 16:19:47 阅读(2029) 回复(4)

;;;;;;;;;;; ; 警告 ; ;;;;;;;;;;; ; 此配置文件是对于新安装的PHP的默认设置. ; 默认情况下,PHP使用此配置文件安装 ; 此配置针对开发目的,并且*不是*针对生产环境 ; 基于一些安全方面的考虑,在你的网站上线之前,请考虑使用php.ini-recommended ; 以及在线文档 http://php.net/manual/en/security.php. ;;;;;;;;;;;;;;;;;;; ; 关于 php.ini ; ;;;;;;;;;;;;;;;;;;; ; 此文件控制了PHP行为的很多方面. 为了让PHP能够读取它 ; 必须...

by dow - php文档中心 - 2009-09-18 17:28:38 阅读(651) 回复(0)