Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening and extracting information from a file
Message
De
09/03/2004 05:35:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00884352
Message ID:
00884363
Vues:
8
"Is there anyway I can open this file lastfile.ms3 with my hex program and extract the (fe 4e) portion of this line into a texbox. From here I could then convert it to decimal?"

You could use following:

lnHandle=FOPEN("lastfile.ms3")
lcLine=" "
IF lnHandle>0
lcLine=FGETS(lnHandle)
=FCLOSE(lnHandle)
ENDIF

lcLine would then contain first line within file. You can also use FSEEK(), FEOF(), FPUTS(), FREAD() and FWRITE() if you need to manipulate further.


Gary.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform