张志峰的博客

水滴石川,积少成多。

导航

2013年9月11日

摘要: 一、INI文件的结构:; 注释[小节名]关键字=值INI文件允许有多个小节,每个小节又允许有多个关键字, “=”后面是该关键字的值。 值的类型有三种:字符串、整型数值和布尔值。其中字符串存贮在INI文件中时没有引号,布尔真值用1表示,布尔假值用0表示。 注释以分号“;”开头。 二、定义1、在Interface的Uses节增加IniFiles; 2、在Var变量定义部分增加一行: myinifile:Tinifile;然后,就可以对变量myinifile进行创建、打开、读取、写入等操作了。三、打开INI文件 Filename:=ExtractFilePath(Paramstr(0))+’prog 阅读全文

posted @ 2013-09-11 20:22 ╰★张志峰★╮ 阅读(8689) 评论(0) 推荐(1)

摘要: ini 文件操作记要(1): 使用 TIniFileunit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls;typeTForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; Button5: TButton; Button6: TButton; Button7: TButton; proced 阅读全文

posted @ 2013-09-11 20:21 ╰★张志峰★╮ 阅读(899) 评论(0) 推荐(0)

摘要: interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, IniFiles; //加个INIFILES单元type TForm1 = class(TForm) Label1: TLabel; Label2: TLabel; Label3: TLabel; Label4: TLabel; Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Edit4: TEdit; Button1: TButton; But 阅读全文

posted @ 2013-09-11 20:14 ╰★张志峰★╮ 阅读(617) 评论(0) 推荐(0)