Re: Trying to Work an Easy way to solve this problem.



The data itself is a binary file on my HDD at the moment, as far as I was
aware posting or attaching binary files is frowned upon unless the newsgroup
allows it, so I didn't choose to attach it...and I don't have any webspace
to store it to link grabbing....

Basically what I'm trying to do, is input data, remove data I don't need
from it, and dump the data back out..

so if I'm reading in binary values of....

$00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0A,$0B,$0C,$0D,$0E,$0F (binary file
on the HDD)

from the data I want to remove $03,$07,$0B,$0C,$0D,$0E,$0F

so I'm left with $00,$01,$02,$04,$05,$06,$08,$09,$A0 (output back to HDD
under new name)

but this has to go through the whole file, so a block of 16 bytes of data
becomes 9 bytes, then I'd work the next 16 bytes changing to 9 bytes, then
at the end all the 9 byte blocks would be one big file, which I output to a
new file.....so a 256 byte file would become 144 bytes in length

Again, values are for example purposes only, and the values could be
anything from $00 to $FF, but the principal conversation will be the same...

Regards
Paul.

"MikeD" <nobody@xxxxxxxxxxx> wrote in message
news:uO2Jpil$IHA.3756@xxxxxxxxxxxxxxxxxxxxxxx

"Kardon Coupé" <prefer.to@xxxxxxxxxxxxxxxxx> wrote in message
news:eJnZEUl$IHA.5048@xxxxxxxxxxxxxxxxxxxxxxx
I'm only using the text as an example, the file itself is a binary file
and doesn't actually contain text, the values could be anything from $00
to $FF


Might help if you post actual data that you're working with.

For one, I still have no clue what you're actually trying to do.

--
Mike
Microsoft MVP Visual Basic




.