APPLICATION NOTE #119 CONVERTING LINE ENDINGS Rev. 01 RELATED FILES: FIXCR.EXE XyWrite requires that all carriage returns be followed by a line feed. Some of the other word processor programs available today, as well as some database programs, use different conventions. This application note describes a program that converts files with incompatible line endings into XyWrite format. PROGRAM DESCRIPTION To convert line endings to the XyWrite format, you need a copy of the program FIXCR, which is available on request. FIXCR eliminates all isolated line feeds, and converts isolated carriage returns and line feed-carriage return combinations into carriage return-line feed combinations. RUNNING FIXCR The format of this command is: A>fixcr filein,fileout where filein is the name of your input file (the file whose line endings you want to convert) and fileout is where you want the converted file stored. You can replace the original file with the converted version by using the input filename as the output filename. (We don't recommend this option until you are familiar with the effects of FIXCR.) To run FIXCR on a file named IMPORT and have the converted file stored in the file IMPORT.FIX: 1. Be sure the current disk or subdirectory contains the program FIXCR. 2. From the DOS prompt (e.g., A>): Type: fixcr import,import.fix Result: The message DONE appears on the screen. A new file, called IMPORT.FIX, is created in the root directory of the default drive. The original file, IMPORT, remains intact so you can continue to use it with the non-XyWrite program. The new file can be reviewed and edited using XyWrite. Note Memory Requirement. FIXCR works by reading the input file into memory before translating it. If you have a very long file, you may not have enough memory to run the program.