Top Navigational Bar

DOS Text Files Retrieve With a ^Z At The End
DocumentID: 652586
Revision Date: 29-Feb-96 8:29:17 PM

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

Problem

Symptoms: A customer has saved a file with one line saved in WP as a DOS text file. When the text is retrieved in WordPerfect, it has a Paper Size/Type code and a ^Z at the end. If a hard return is added to the last line, there are no codes at the bottom of the file when it is retrieved. Solutions: In WP5.1 List Files, option 5 for Text In is not available, like it was in WP5.0. An auto detector was coded into WP5.1 to determine what type of file it is. When a one line file without a hard return is saved as DOS text, and then retrieved into WP5.1 as a regular WordPerfect file, the auto detector comes into play. The auto detector looks at the file for a carriage return to determine if the file is a DOS file or a WP4.2 file. If the file has a carriage return and a line feed, the document is a DOS text file. When the file is retrieved as DOS text it does not have a ^Z or a Paper Size/Type code, but if the file only has a line feed and no codes, the auto detector reads the file as a 4.2 file and adds the Paper Size/Type code and reads the ^Z as text.

All DOS text files have both a carriage return and a line feed if they are multiple line text files. WP4.2 files will never have both codes, only line feed codes. The program is working as designed, and he must save a DOS text file with at least one hard return.

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.