> Date: Sun, 30 Jul 2006 16:54:52 +0100 > From: "Jerry Mallett" <[EMAIL PROTECTED]> > Subject: Telnet, Indy9, text file conversion; > To: <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; format=flowed; > charset="iso-8859-1"; > reply-type=original > > > > I have TELNETed into our phone server at work to port 4001 > and it allows me to output the call logs to a txt file in > this format..... > > 27/07/2006 12:15,Catherine Bradley,Modules.CallServer 00 > -07-d9-00-1c-6b.PRI,Catherine > Bradley,2180,,,07813922167,63390,26830,,,1,,,Cathe > rine > Bradley,d40d0300-e4a6-c814-927e-0007d9001fc7,0 > ,,10,30890,20970,27/07/2006 1 1:15:46.513,,1,Catherine > Bradley,,,0, 27/07/2006 12:16,Cheryl Rainey > ,Modules.CallServer 00-07-d9-00-1c-6b.PRI,Cheryl R > ainey,2022,,,00353749156837,36620,14250,,,1,,,Cheryl > Rainey,d4200a00-4ca5-c814-b > 868-0007d90019a1,0,,10,20250,16170,27/07/2006 11:16:06.274 > ,,1,Cheryl Rainey,,,0, > 27/07/2006 12:16,McCambridge Duffy Customer Care one, > ,,07775911808,Theresa Gilli > spie,McCambridge Duffy Customer Care > one,8001,115180,112730,,,1,Modules.CallServ > er 00-07-d9-00-1c-6b.PRI,2000,McCambridge Duffy Customer > Care one,47f50700-04a0- > c814-b011-0007d9001c6b,0,6c350d00-6aa1-c814-8770-0007d9001 > aa2,110,2340,2240,27/0 7/2006 11:16:07.735,,1,McCambridge > Duffy Customer Care one,,,0, 27/07/2006 12:16,Theresa > Gillispie,,Theresa Gillispie,2000,Danielle mc conway,Da > nielle mc conway,2168,42580,24620,,,1,,2168,Theresa > Gillispie,6c350d00-6aa1-c814 > -8770-0007d9001aa2,1,47f50700-04a0-c814-b011-0007d9001c6b,
Yes you can use your telnet component to retrieve a string. Standard pascal read routine will read comma separated fields You could read each field into a string - if it is a date time field then start a new record else append it to existing record Mick _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

