Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open,read,convert
Message
 
 
To
13/11/2001 22:43:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00581297
Message ID:
00581303
Views:
17
>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."
Previous
Reply
Map
View

Click here to load this message in the networking platform