Creating a checksum for a text file
  Home FAQ Contact Sign in
comp.lang.basic.visual.misc only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.basic.visual.misc Profile…
 Up
Creating a checksum for a text file         


Author: charles
Date: Jul 20, 2008 23:21

I have a file containing approx 300 lines of text..
Each line has a CrLf at the end. The size of the file is about 8K.

I am reading strings into an array.
I need a simple method of creating a checksum for the file.

Can anyone suggest a fast and simple method.

Thanks

Charles W.
5 Comments
Re: Creating a checksum for a text file         


Author: Jason Keats
Date: Jul 21, 2008 04:37

charles@home.com wrote:
> I have a file containing approx 300 lines of text..
> Each line has a CrLf at the end. The size of the file is about 8K.
>
> I am reading strings into an array.
> I need a simple method of creating a checksum for the file.
>
> Can anyone suggest a fast and simple method.
>
>
> Thanks
>
>
> Charles W.

'modCRC32.bas
Option Explicit

Private malTable(255) As Long

Public Sub Main()

Dim sFile As String
Show full article (3.32Kb)
no comments
Re: Creating a checksum for a text file         


Author: charles
Date: Jul 21, 2008 10:48

Jason

When I run this I dont get any result.

Can you help?

Thanks

Charles W

"Jason Keats" melbpcDeleteThis.org.au> wrote in message
news:g61scq$kn1$1@aioe.org...
> charles@home.com wrote:
>> I have a file containing approx 300 lines of text..
>> Each line has a CrLf at...
Show full article (3.67Kb)
no comments
Re: Creating a checksum for a text file         


Author: Alfie [UK]
Date: Jul 21, 2008 11:20

On Mon, 21 Jul 2008 18:48:56 +0100, "charles@home.com"
home.com> wrote:
>When I run this I dont get any result.
>
>Can you help?
>
The module as it stands outputs the result to the immediate window which
will hide itself after running if you don't have it showing normally.

Either [View], the [Immediate Window], or change the line;

Debug.Print GetFileCRC(sFile)

...to...

MsgBox GetFileCRC(sFile)

Obviously you'll need to tailor usage and output to your own app.

HTH
--
Alfie [UK]
<http://www.delphia.co.uk/>
Forgive me if I can't give you the answers today, I don't have all the answers, and the answers I do have may be different tomorrow.
no comments
Re: Creating a checksum for a text file         


Author: charles
Date: Jul 21, 2008 15:01

Thanks. I did manage to get this to work.

Charles W.

"Alfie [UK]" wrote in message
news:mik9849il77n9bqluh55fgvb5q857q4o67@4ax.com...
> On Mon, 21 Jul 2008 18:48:56 +0100, "charles@home.com"
> home.com> wrote:
>
>>When I run...
Show full article (0.89Kb)
no comments
Re: Creating a checksum for a text file         


Author: Jason Keats
Date: Jul 22, 2008 04:17

charles@home.com wrote:
> Thanks. I did manage to get this to work.
>
> Charles W.

Good :-)
no comments

RELATED THREADS
SubjectArticles qty Group
Create a meta name in HTML header filealt.html ·