| |
djjohnnyg
Posts: 1
Score: 0
Joined: 10/6/2008
Status: offline
|
Hi, I am trying to recreate a perl script in VB but have a problem creating a checksum value that a target system needs. In Perl this checksum is calculated using the unpack function: while (<PACKAGE>) { $checksum += unpack("%32C*", $_); } $checksum %= 32767; close(PACKAGE); } where PACKAGE is the .tar file input stream I need to replicate this in VB but can't find a means of replicating that unpack function. All help appreciated! (I know there are much better checksum calculations available but can't change target system so can't change calculation)
|
|