How Does Cardfile Verify Writes?Last reviewed: July 29, 1996Article ID: Q82823 |
The information in this article applies to:
SUMMARYIn Microsoft Windows version 3.1, the Cardfile accessory application has a Validate Writes check box in the File Save dialog box. If this check box is selected, then Cardfile verifies the integrity of the changes it writes to the file.
MORE INFORMATIONWhen Save or Save As is chosen from the File menu, Cardfile writes the changes to a temporary file. If Validate Writes is selected, Cardfile then reopens this temporary file and checks that it can read it. Cardfile does not compare the files card by card, but merely makes certain that the file opened is in a valid Cardfile format by checking the validity of the following:
If the temporary file is valid, the temporary file is renamed to the filename you specify. By performing the validation in this manner, the old file is not corrupted when you try to update it with more information. Cardfile for Windows 3.1 has a new format that allows it to support OLE and contain pictures. The new format entails a change in the header for the file. If the file contains a picture, Cardfile saves the file in this new format. If it does not contain a picture, Cardfile saves the file in the format used in Cardfile for Windows version 3.0, allowing both versions to read it. If someone takes a file containing a picture and tries to open it using the 3.0 version of Cardfile, the following message will appear:
Not A Valid CardfileFor more information on the Cardfile format, query on the following words in the Microsoft Knowledge Base:
appnote and cardfile and format validateFileWrite=1 |
KBCategory: kbtool kbfile kbappnote
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |