Msg: 6376 *Conference*
03-25-96 19:03:52
From: RON WIESEN
To : RON WIESEN
Subj: REPLY TO MSG #6374 (RAMPAC WOES)
Looked at documentation which says checksum of N-DKTR.BA while in .DO form should be 299185. Downloaded it and ran a checksum and found it to be 301393. Then took a known good copy of N-DKTR.BA and SAVEd it in .DO form and ran a checksum on it which also produced 301393. Conclusion: documented checksum of 299185 is wrong and should be 301393. So I wonder how you found it to be OK? Here's program I used for checksum of N-DKTR: 0 MAXFILES=1:OPEN"N-DKTR"FORINPUTAS1:C=0 2 IFEOF(1)THENPRINTC:END 4 C$=INPUT$(1,1):C=C+ASC(C$):GOTO2 Because the difference (301393-299185) of 2208 is evenly divisible by (13+10) 23, the intended checksum operation might have been line oriented and thus ignored the CarriageReturn / LineFeed line-end characters. That would account for exactly 96 lines. I'm not going to count the lines. You can add the following line to my checksum program to make it ignore line-end characters and see if it gives a checksum of 299185: 3 LINEINPUT#1,L$:FORI=1TOLEN(L$):C=C+ASC(MID$(L$,I)):NEXT:GOTO2 So much for checksumming N-DKTR.BA while in .DO form.