You asked ...


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]

Posted by DarkTerritory on August 10, 1999 at 09:30:14:

In Reply to: Re: Project 5 errata posted by hussein on August 10, 1999 at 08:51:35:

: how would you check if a file is valid ?

A few possible ways come to mind -

1. Have a header record that includes some kind of checksum or validation sequence.

2. File size should be divisible by record size.

3. When reading in the file, if you get a pointer that points outside of the file, you probably have problems.

4. Every time you output a file, write its name to the registry. Create a Windows shell extension that hooks into any copy or move and updates the registry as needed to track any files you create.

-DT


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]