05.07.2013 Views

BSA Flow Software Installation and User's Guide - CSI

BSA Flow Software Installation and User's Guide - CSI

BSA Flow Software Installation and User's Guide - CSI

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

char filename[256] = {0};<br />

strcpy(filename,argv[1]);<br />

int fh = _open(filename,_O_RDONLY|_O_BINARY);<br />

if (fh==-1) exit(1);<br />

// reading file header size<br />

_lseek(fh,0x008,SEEK_SET);<br />

_read(fh,&fsize,sizeof(fsize));<br />

// reading number of data arrays<br />

_lseek(fh,0x158,SEEK_SET);<br />

_read(fh,&arrays,sizeof(arrays));<br />

// reading data header size<br />

_lseek(fh,fsize + 0x002,SEEK_SET);<br />

_read(fh,&dsize,sizeof(dsize));<br />

// calculating distance to last data header<br />

pos = fsize;<br />

for (int i=0;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!