Top Navigational Bar

Convert Program - File Size Is In Multiples O
DocumentID: 651805
Revision Date: 29-Feb-96 8:29:10 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: When saving an ASCII text file inside WordPerfect, WP saves with the correct DOS file size. However, converting the document with the Convert program gives an incorrect DOS file size. The file size is always a multiple of 512. For example, if the file is as small as 15 bytes in size, DOS shows it as 512 bytes in size and if the file is actually 513 bytes, DOS will show it at 1024 bytes. Solutions: This is working as designed. The reason CONVERT.EXE pads the file is because there are some applications that require files to run in 128 bytes chunks or blocks. The buffer on the computer is used to pad the file with ^Z's. Since buffers run in increments of 128 bytes, this allows the files to meet the criteria for these certain programs. In the above example, the buffer is more than likely 512 bytes. Therefore the file was padded up to that size. The user suggested that Convert put one ^Z and pad with spaces. This has been submitted as an enhancement request.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.