Let us call you now Contact Greenview Data, Inc. 1-800-458-3348 Privacy SpamStopsHere.com  
VEDIT text editor

Automation

 
   

Automation Example #2 (Convert tabs to spaces)

For this example, we want to convert tab characters in a file to just spaces. Many text files contains tab characters; this often makes them difficult to import into other programs, especially if the programs have different tab stops.

This is almost identical to the previous example; a different VEDIT macro is needed. Create a text file, e.g. "detab8.vdm" containing the following VEDIT commands:

        Config_Tab(8)                        //Assume tab stops every 8
        Detab_Block(0,File_Size)       //Convert tabs to spaces
        Xall                                        //Save file and exit

Then create a batch file, e.g. "detab8.bat" containing the following line:

        c:\vedit\vpw -q -x detab8.vdm %1

With the DETAB8.BAT file, you can now easily (detab) convert all tabs characters in a text file to spaces. For example, assuming the name of the text file is "payments.txt", at a DOS or NT prompt, simply give the command:

        stripw detab8.txt

You could also create a Windows icon for this function.


This example just barely scratches the surface of the many ways in which VEDIT can automate your editing, conversion and file "clean up" operations.

If you have any questions about automation or other aspects of VEDIT, please don't hesitate to contact us.

For information regarding SpamStopsHere, our award winning spam blocker, spam filter service, please visit SpamStopsHere.com.

Or we would be happy to call you:   Call me now

Please contact us with any sales or technical questions at:

Mailing address: Greenview Data, Inc. PO Box 1586, Ann Arbor, MI 48106 USA
Phone (Sales): In US and Canada call Toll-Free 1-800-458-3348
Phone: Otherwise, please call (734) 996-1300
Fax: (734) 996-1308
E-mail: sales@vedit.com or support@vedit.com