Blout 2.2 build: 9330 released: 2009-05-05 Remove excess blank lines from text files, bl(ank)-out. Copyright (c) 2009 Canadian Mind Products. C command line utility. Download from http://mindprod.com/products3.html#BLOUT ===> Free <=== Full source included. You may even include the source code, modified or unmodified in commercial programs that you write and distribute. May be used freely for any purpose but military. For more details on this restriction, see http://mindprod.com/contact/nonmil.html If you include any Canadian Mind Products code in your own applications, your app too must be labeled non-military use only. All C source and EXE files code are included. ---- Prerequisites: This program runs under Microsoft Windows from the command line (e.g. Win2K/XP/Vista) ---- Installing on a PC: Download source and executable files to run on your own machine as a standalone utility. To install, extract the zip download with WinZip (or similar unzip utility) into any directory you please, often J:\ -- ticking off the "use folder names" option. ---- Installing on a MacIntosh: Use Safari to download source and executable files to run on your own machine as a standalone utility. The EXE files will not work. You will have to recompile, perhaps making minor changes to the source code. Safari will automatically unpack the zip into ~/Downloads (version 10.5) [or on the Desktop (version 10.4 and earlier)]. First install a recent Java JDK or JVM. See http://mindprod.com/jgloss/installingjava.html. You may optionally move the download tree to a permanent home. ---- Rebuilding: The zip already contains the necessary exe, so unless you modify the program, there is no need to recompile the source or recompile it. Configure basedir="E:/" in rebuild.xml to the drive where your files are and tweak rebuild.xml. Use ANT and rebuild.xml, not build.xml, to rebuild and link. ---- Use: Blout removes extra blank lines from a file, collapsing multiple blank lines down to one. It also ensures the file has a final CrLf. Blout in not that bright. It does not understand wildcards or multiple files on the command line, except those expanded by the OS. usage: blout.exe somefile.txt For Windows, C source included. copyright (c) 1993-2008 by Roedy Green of Canadian Mind Products, http://mindprod.com. May be freely distributed and used for any purpose but military. ---- Version History: 1.0 1993-11-09 - Roedy Green in Microsoft Visual C 8 1.1 1996-11-08 - extra "good" extensions 1.2 1997-03-10 - extra "good" extensions HTM, INI, SQL 1.3 2003-05-09 - extra "good" extensions CSV 1.4 2004-05-20 - converted to Win32 app. new ensures file has terminating \n. 1.5 2004-06-01 - handles *.html files avoid close of unopen files. 1.6 2005-07-23 - add more good and bad extensions 1.7 2007-07-23 - add xsd, xsdfrag, dtd, dtdfrag extensions 1.8 2008-01-02 - convert to POSIX and safe char handling library. 1.9 2008-01-03 - fix time file placement, display banner on all errors 2.0 2008-01-05 - add *.pml as a good extension. 2.1 2009-03-11 - add ANT build script 2.2 2009-05-05 - add pml to list of safe extensions -30-