Posted by student on August 10, 1999 at 17:31:31:
In Reply to: You asked ... posted by DarkTerritory on August 10, 1999 at 09:30:14:
>> 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.
this was what I was thinking
> 2. File size should be divisible by record size.
this would be easy too
> 3. When reading in the file, if you get a
> pointer that points outside of the file, you
> probably have problems.
smart, very smart...
> 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.
don't give them any ideas, you sicko :)