The code is very similar to Fox code. Hit the help file and look at fgets(), fopen(), fread(), fputs(),fseek(). There is sample code that will show you exactly what you are looking for.
John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Gunvaldson Sent: Tuesday, December 19, 2006 11:46 AM To: [email protected] Subject: Read / Write Binary TIFF Image I know I can do this in Python or .NET, but I need to do this in Visual FoxPro 9. Does anyone have an example that can show the proper setup / way to open a binary file (like a TIFF file) - jump to a specific address - and conduct a reverse ones compliment on the bytes in a specific range of addresses? Generally, I am looking for the right way doing something like the following... *-- open file and read h= fopen(TIFF_FILE,10) fseek(h, (m.lnoffset)) && move the pointer for lnj = 1 to 42 *-- each byte x = fread(h, (m.lnj) ) *Q-- here I need to check byte, and reverse if necessary endfor fclose(h) Tia, John C. Gunvaldson San Diego, CA [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

