Hi guys,
Basically I am indexing through lines of text in a text file.
I am looking to delete lines of text with a singular W in it with a space at either side. ie " W "
I would delete this line if I could find it:-
The cat sat on the W mat.
The lines of text are read in as AnsiStrings
AnsiString LineToCheck;
if (LineToCheck.AnsiPos(" W ")>0)
{
Blah Blah Blah
}
// this should find the above line but is doesn't. Any idea how I can overcome this ??
Thanks
Graham