1:如果真是ini文件 array parse_ini_file ( string filename [, bool process_sections])parse_ini_file() loads in the ini file specified in filename, and returns the settings in it in an associative array. By setting the last process_sections parameter to TRUE, you get a multidimensional array, with the section names and settings included. The default for process_sections is FALSE 2:如果是普通文件 提供思路 fseek ( int fp, int offset [, int whence])找到字符所在 用fgets ( int fp [, int length])读取 然后是修改等
array parse_ini_file ( string filename [, bool process_sections])parse_ini_file() loads in the ini file specified in filename, and returns the settings in it in an associative array. By setting the last process_sections parameter to TRUE, you get a multidimensional array, with the section names and settings included. The default for process_sections is FALSE 2:如果是普通文件
提供思路
fseek ( int fp, int offset [, int whence])找到字符所在
用fgets ( int fp [, int length])读取
然后是修改等
fgets,fgets,fputs,fread,fwrite,fseek
strrchr,strtok,split,explode,这些函数应该够了