Mitchell
reading binary data from IBM POS machine January 20, 2012 07:42AM |
Arie
Re: reading binary data from IBM POS machine January 20, 2012 09:01AM |
Mitchell
Re: reading binary data from IBM POS machine January 20, 2012 11:52AM |
Arie
Re: reading binary data from IBM POS machine January 20, 2012 12:19PM |
Mitchell
Re: reading binary data from IBM POS machine January 20, 2012 12:34PM |
Gianni Spano
Re: reading binary data from IBM POS machine January 20, 2012 12:38PM |
Mitchell
Re: reading binary data from IBM POS machine January 20, 2012 01:48PM |
Piet van Zanten
Re: reading binary data from IBM POS machine January 20, 2012 02:36PM |
Mitchell
Re: reading binary data from IBM POS machine January 20, 2012 02:55PM |
Arie
Re: reading binary data from IBM POS machine January 20, 2012 03:05PM |
nFileID is int nFileID2 is int sStringRead is string fixed on 1024 // Opening the file nFileID = fOpen("D:\Dev\Testing\eamitemr.dat", foRead) nFileID2 = fOpen("D:\Dev\Testing\eamitemr_copy.dat", foWrite+foCreate) IF nFileID <> -1 THEN // Read the file WHILE fRead(nFileID, 1024, &sStringRead) > 0 // write a copy fWrite(nFileID2,sStringRead,1024) END // Close the files fClose(nFileID) fClose(nFileID2) ELSE Error() END
Mitchell
Re: reading binary data from IBM POS machine January 20, 2012 03:19PM |
Andres Sanchez <img src="images/world-s.png" class="global" alt="Global User" title="Global User" />
Re: reading binary data from IBM POS machine January 20, 2012 04:32PM |
Arie
Re: reading binary data from IBM POS machine January 20, 2012 04:45PM |
Steve M
Re: reading binary data from IBM POS machine January 20, 2012 10:49PM |
Mitchell
Re: reading binary data from IBM POS machine February 03, 2012 10:24AM |
Steve M
Re: reading binary data from IBM POS machine February 03, 2012 11:49PM |
Mitchell <img src="images/world-s.png" class="global" alt="Global User" title="Global User" />
Re: reading binary data from IBM POS machine February 04, 2012 11:20AM |
Andres Sanchez <img src="images/world-s.png" class="global" alt="Global User" title="Global User" />
Re: reading binary data from IBM POS machine February 08, 2012 05:31AM |
Quote
I had something like this reading Unitech handheld database files:
First xxx bytes are a header containing the recordlayout.
After that, you get chunks of bytes for each record.
First nn bytes of each record tell you the length of that particular record.
WIth this info you can read alle records one after one.
Andres Sanchez <img src="images/world-s.png" class="global" alt="Global User" title="Global User" />
Re: reading binary data from IBM POS machine February 08, 2012 06:58AM |