Problems handling text files with NMFTP and D6
Posted on 2003-03-02
Hello all :)
I do the following:
>> Create Application In Delphi 6
>> Use and setup NMFTP config (hosts/user/pass etc)
>> Set NMFTP file mode to MODE_ASCII
>> Successfully connect and download (GET) a text file from the host
now here's the problem, that text file i just downloaded, if i open it using notepad i can view it normally.
But if i open it in my own delphi application loading it
using a simple memo, rich edit or even using the Read() or EOF() fuctions it shows me crap (something like 'ÏùÔ').
And no its not my computer's problem (eg: not supported chars) because my D6 can read any other non-downloadable files. And another thing, even i that file i downloaded from NMFTP open it and save it inside notepad STILL D6
CANT read it... ok i'm going nuts here guys.
Could anyone explain why this happening and how to solve it?
Thanks in Advance!! :D