DOS or Windows ANSI text file convert ?

Does anyone have a method for finding out what kind of text file an
application (text editor) deals with (DOS or ANSI), and a method for
converting from one to the other.
Does it deal with the OEMConvert property of a TRichEdit component ?

If you know anything about this topic, please help me ....

Thanks

------------------------------------------------------------
 Olivier BAGOT
 Eleve ingenieur ISMRA-ENSI de Caen, Genie Informatique
 ba...@ensicaen.ismra.fr
 http://www.ensicaen.ismra.fr/~bagot/