Hi guys,
I have a really weird/unique problem - not sure if somebody experienced something like this before - I'm not 100% sure if its an encoding issue, or if I'm just being retarded - but my issue is this:
I need to analyze text files - basically activity log files that's queued for import to a DB - that generate import errors sometimes due to damaged files.
Each one of the lines contains a two letter header (and comma) to indicate the information that will follow - based on that, the processor on our server knows what to do with the rest of the line...very straight forward.
Here's my problem - when I try to open the file and do a simple count of the different lines available in the file, I can't seem to get a match for those first two letters no matter what I try

I've tried using AnsiToUTF8, SysToUtf8, and normal comparison with Pos, AnsiPOS, and even Copy to match the extracted characters...keeps on failing.
Using a normal TextFile, I use a while not EOF loop to read the file contents to a TStringList - I tried both reading it in direclty, and converting the lines right before I use them (also tried without converting the lines), and also converting the lines before I add it to the TStringList.
I've exhausted all possible combinations of getting a match on those two header letters - but here is the real brainteaser:
Say I open the file with Notapad/Notepad++, and I copy/paste the two letters from that line into my code - it works perfectly! But the moment I type the letters into my code, it suddenly doesn't exist?!?
(hence the fact I'm thinking its file encoding)
Also - I can't really ask our developers for assistance on this...my work at the moment is "
unsanctioned", hehehe