The DelimitedText functionality in TStringList has been broken like that for a very long time. I presume it's never been fixed due to the spectre of backward INcompatibility.
Anyways, there's some classes in the old TurboPower SysTools product that handle delimited text in a more intuitive fashion. You can download SysTools from SourceForge. Have a look at the classes in the StTxtDat unit. HTH Stephen Posey [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Thursday, June 11, 2009 3:19 AM To: [email protected] Subject: TAB file parsing Please help me with this tab file parsing. I don't create the file, I'm just supposed to read it. The text is not enclosed in " except where the text has a , MyLine = some^text#some^more^text#99#99####99#last^bit^of^text ^ == a space # == a TAB My code = MyNL:=tStringList.Create; MyNL.Delimiter:=#9; MyNL.DelimitedText:=MyLine; What I expect : some^text some^more^text 99 99 <null> <null> <null> <null> 99 last^bit^of^text What I get: Some text some more text 99 Thanks for any input - Chris _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi ****************************************************************** This email and any files transmitted with it from the El Paso Corporation are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. ****************************************************************** _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

