This is a simple little Java program that will convert a text file with any platform's line ending conventions to the line ending convention of the machine that this program is running on. In other words, this program will fix the line endings of a file that originated on a different platform so that it displays properly on your computer. This is very useful when transferring text files back and forth between Mac and Windows platforms.
This program, unlike most of mine, is in the public domain. The full source code is provided and you may do with it as you please. See the notice at the top of the source files for more information.
I have different versions of my EOL converter program for different platforms. The program source and byte code is exactly the same, but the Windows and UNIX versions include an installer that isn't required for the MacOS version. The MacOS version does do a few things that make it a well behaved MacOS program. For instance it maintains the file type and creator codes for the file being converted (the output file created will have the same file type and creator as the source file).
MacOS Application (124 kB) Version 1.0.1 |
A Java 1.2 application that will run under MacOS X. Should work with MacOS X straight out of the box. This compressed disk image includes full source code. |
Windows Application (1.3 MB) Version 1.0.1 |
Application that will run under Windows. You should use the latest version of Java 2. This is a ZIP file containing the installer. |
UNIX Application (1.3 MB) Version 1.0.1 |
Application that will run on a UNIX system with Java 1.2 or later installed. |
Source Code (20 kB) Version 1.0.1 |
Full source code for the EOL converter program. The source code is all public domain. |
Change history.
Need help?