Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open,read,convert
Message
 
À
13/11/2001 22:43:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00581297
Message ID:
00581303
Vues:
18
>Dear All,
>
>Can anybody explain step by step how to open,read,convert a file (hex format) into readable format (ascii), or may be give some concept how to do it.
>
>Thanks,
>Andreas.

** Low Level Function
Local gnFlHndl,nSize,cString
gnFHndl = FOPEN("myfile.txt") && OPEN THE FILE
nSize =  FSEEK(gnFlHndl, 0, 2) && GET THE SIZE
cString = FREAD(gnFHndl, nSize) && READ THE CONTENT
?cString && POP THE STRING TO SCREEN
=FCLOSE(gnFHndl) && CLOSE THE FILE
You may also look STRTOFILE() and FILETOSTR() functions.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform