Gordon,

You might try this:

TMemo.Lines is a TStrings, and TStrings.Text "Lists the strings in the 
TStrings object as a single string with the individual strings delimited by 
carriage returns and line feeds." (Online help)

Now AnsiReplaceStr function "Replaces all occurrences of a substring with 
another string.", so you ask it to replace '$D$A$D$A$D$A$D$A' with $D$A.

HTH

Walter

At 08:03 PM 3/20/2006, you wrote:
>Hi Delphi Fans,
>
>I am trying to format a series of text files and combined them in to one
>large file.
>
>My issue is that my input text files are generated by an external
>system, and this is putting 4 blank lines through out  the text file,
>what I am trying to do is to remove these 4 blank lines.(and only the 4
>blank lines) from the files.
>
>I am currently reading the input files from disk, and appending them to
>a memo, I then save this memo back to disk with a new name.
>
>So what I am asking is what is a easy way to detect 4 x CR LF in a row
>and skip appending these to my memo.
>
>Thanks
>
>Gordon.
>
>
>
>
>
>
>
>
>
>_______________________________________________
>Delphi mailing list -> [email protected]
>http://www.elists.org/mailman/listinfo/delphi

/*
C. Walter Ogston
[EMAIL PROTECTED]
*/


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to