Ecrire en héxadécimal dans un fichier

sebastienbro Messages postés 246 Date d'inscription dimanche 14 avril 2002 Statut Membre Dernière intervention 5 août 2004 - 12 janv. 2003 à 14:36
cs_Delphiprog Messages postés 4297 Date d'inscription samedi 19 janvier 2002 Statut Membre Dernière intervention 9 janvier 2013 - 12 janv. 2003 à 15:10
Voilà, j'aimerais savoir comment on fait pour écrire en héxadécimal dans un fichier. En fait, je voudrais, par exemple, dire d'écrire $20, et je voudrai k'il écrire dans le fichier un espace.

J'y arrive pas, soit il écrit rien, ou alors, alors un TFileStream, il écrit n'importe koi !!!

Merci d'avance

Bye

\* -- Seb -- */

1 réponse

cs_Delphiprog Messages postés 4297 Date d'inscription samedi 19 janvier 2002 Statut Membre Dernière intervention 9 janvier 2013 32
12 janv. 2003 à 15:10
Si c est du type Char, alors c:= Char($20) inscrit le caractère ASCII 20 hexadécimal, soit 32 en décimal, soit un espace dans le jeu de caractères ASCII standard.

May Delphi be with you
0
Rejoignez-nous