D
downage
Unregistered / Unconfirmed
GUEST, unregistred user!
[5] Wed 24Mar04 11:35:43 - (000011) IP-Name: LOCALHOST
[4] Wed 24Mar04 11:35:49 - (000011) Receiving file d:/logo4.txt
[4] Wed 24Mar04 11:35:49 - (000011) Received file d:/logo4.txt successfully
以上三行存在一个文本文件中,我想把
IP-Name:
Receiving file:
Received file:
后面的内容提取出来,我用下面的方法提取第一行,可是结果不对,不知道为什么
AssignFile(LogoFile,epath.Text+'/logo.txt');
Reset(LogoFile);
listbox1.Items.Clear;
Try
While not Eof(LogoFile) do
begin
ReadLn(LogoFile,s);
si:=pos('IP-Name',s);
s:=copy(s,si+Length('IP-Name')-1,30);
listbox1.Items.Add(S);
end;
finally
CloseFile(LogoFile);
end;
[4] Wed 24Mar04 11:35:49 - (000011) Receiving file d:/logo4.txt
[4] Wed 24Mar04 11:35:49 - (000011) Received file d:/logo4.txt successfully
以上三行存在一个文本文件中,我想把
IP-Name:
Receiving file:
Received file:
后面的内容提取出来,我用下面的方法提取第一行,可是结果不对,不知道为什么
AssignFile(LogoFile,epath.Text+'/logo.txt');
Reset(LogoFile);
listbox1.Items.Clear;
Try
While not Eof(LogoFile) do
begin
ReadLn(LogoFile,s);
si:=pos('IP-Name',s);
s:=copy(s,si+Length('IP-Name')-1,30);
listbox1.Items.Add(S);
end;
finally
CloseFile(LogoFile);
end;