ini文件? 怎样打开ini文件,并进行读写? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 IniFile:=TIniFile.Create('F:\Borland\2000\Delphi6\WallPaperMaker.ini'); DirectDelete:=IniFile.ReadBool('name1','name2',true); STV.Path:=IniFile.ReadString('name3','Path',STV.SelectedFolder.PathName); MovePath:=IniFile.ReadString('name4','MovePath',MovePath); IniFIle.Free;ini 里是这个样子[name1]name2=1[name3]Path=D:\Documents and Settings\Administrator\桌面[name4]MovePath=C:\Documents and Settings\Administrator\My Documents\My Music对照着看应该能明白 IniFile:=TIniFile.Create('F:\Borland\2000\Delphi6\WallPaperMaker.ini'); IniFile.WriteBool('name1','name2',true); IniFile.WriteString('name3','Path',STV.SelectedFolder.PathName); IniFile.WriteString('name4','MovePath',MovePath); IniFIle.Free;这是写入ini的程序。格式也是上面那个样子 都说完了,还要加上uses inifiles; Delphi数据库问题 注册OCX的问题 寻求解决方案 Delphi7中如何利用Rave5自定义报表预览,如何汉化Rave5的报表设计器 又个关于Access 系统表 MSYSOBJECTS 的连接的问题 浮点运算错误! 请问要退出if结构要用什么语句? 怎么在激光打印机下不能打印? 一个简易的程序代码 买不到票,回不了家了 :( 放分 格式转换问题,急 在线等待 select 问题
STV.Path:=IniFile.ReadString('name3','Path',STV.SelectedFolder.PathName);
MovePath:=IniFile.ReadString('name4','MovePath',MovePath);
IniFIle.Free;ini 里是这个样子
[name1]
name2=1
[name3]
Path=D:\Documents and Settings\Administrator\桌面
[name4]
MovePath=C:\Documents and Settings\Administrator\My Documents\My Music对照着看应该能明白
IniFile.WriteString('name3','Path',STV.SelectedFolder.PathName);
IniFile.WriteString('name4','MovePath',MovePath);
IniFIle.Free;这是写入ini的程序。格式也是上面那个样子