Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I replace bytes in file
Message
 
 
To
02/11/2005 12:16:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064533
Message ID:
01064558
Views:
39
Hi Dennis,

Looks fine to me but you'll have to test to make sure that binary data doesn't get srewed in that process.
>
>Thanks for reply...
>As I right understand it might looks like
>lcBinary = FILETOSTR(lcFilename)
>IF ASC(LEFT(lcBinary,1))=0xFF AND ASC(SUBSTR(lcBinary,2,1))=0xD8
>       lcBinary = CHR(0x45)+CHR(0x50)+SUBSTR(lcBinary,3,LEN(lcBinary))
>       STRTOFILE(lcBinary,lcFilename)
>ENDIF
>Am I right?
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform