Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening and extracting information from a file
Message
From
09/03/2004 05:35:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00884352
Message ID:
00884363
Views:
7
"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.
Previous
Reply
Map
View

Click here to load this message in the networking platform