CodePudding user response:
Text type? If is the text type using the stringlist line ahCodePudding user response:
Suggest you use the ini file well,All parameters, can be put in an INI file, can be classified depositing,
Reading and writing are very convenient,.
CodePudding user response:
You do not to come out of the difficulty?CodePudding user response:
Novice, d, e are ini format, how to find them and replace, can't writeCodePudding user response:
Procedure TForm1. Button2Click (Sender: TObject);Var
ATextFile: TStringList;
The begin
ATextFile:=TStringList. Create;
ATextFile. LoadFromFile (' * * * *. Ini ');
StringReplace (aTextFile. Text, '192.1.1.1', '182.1.2.200' [rfReplaceAll]);
The end;
CodePudding user response:
Or surf the Internet to find the first INI file read and writeCodePudding user response:
Thank you upstairs, I under study