Windows Text File Blank Line Cleaner

  • Hi

    Does any one know of a utility that can clean blank lines in a Windows text file. Perhaps a piece of VB code that I can use to accomplish this?

    For example

    Text File BEFORE*********************

    dfjkhsdfhjsdkf 3434 343dfdf 23 fdf

    675 79 gfdgsdfs 565 dfsdfsdfsdf

    sdfsdfdsfdsfsdf sdsdfsdf sdfsdfdsf dsfsdfsd

    09565 2345 sdff sdfsdf kljl 345345

    Text File AFTER*********************

    dfjkhsdfhjsdkf 3434 343dfdf 23 fdf

    675 79 gfdgsdfs 565 dfsdfsdfsdf

    sdfsdfdsfdsfsdf sdsdfsdf sdfsdfdsf dsfsdfsd

    09565 2345 sdff sdfsdf kljl 345345

  • You could write an Active X task to do this. Using the FileSystemObject, you can read a line and write a line. If one is blank, then don't write it.

    Steve Jones

    steve@dkranch.net

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply