Article ID: 161832
Article Last Modified on 7/1/2004
COPY TO temp FIELDS picture NEXT 1
*** Open two files, "temp.fpt" contains the physical BMP data.
*** and Create a file handle for the output file "Test.Bmp"
handlein=FOPEN("temp.fpt")
handleout=FCREATE("test.bmp")
*** To determine the length of the Input file "Temp.fpt"
gnEnd = FSEEK(handlein, 0, 2)
gnTop = FSEEK(handlein, 0)
*** Store the whole file into a string "str1"
str1 = FREAD(handlein, gnEnd)
*** Offset 599 bytes from Str1 and save it to "str2"
str2=RIGHT(str1,LEN(str1)-599)
*** Write "Str2" into the BMP file "Test.BMP"
n=FWRITE(handleout,str2)
*** Close both opened files
=FCLOSE(handlein)
=FCLOSE(handleout)
Keywords: kbhowto KB161832