fpschultze - Howto - Wsh Howto - How To Show The End Of a Text File (Tail)?


Frank-Peter Schultze's Scripting Site

Login Consultants BlogRing
Previous Site : Random Site : Next Site : List Sites
Powered by WebRingo
Main Menu
Site Search
Creative Commons License
Cool Companies
Login Consultants
Immidio | Shortcuts For Sharp Minds
My PowerShell IDE is PowerGUI
SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)

How To Show The End Of a Text File (Tail)?
Requested and Answered by Frank-Peter Schultze [webmaster] on 10-Sep-2005 21:27 (18060 reads)
The VBScript file Tail.vbs (Download) shows the end (the last lines) of a text file.

During the read of the text file, instead of counting the lines, each line is pushed into a small, rotating stack held in a dynamic array (size = number of tail lines). At the end of file, the stack array is popped to echo the tail.


© 2000-2006 mail | Powered by XOOPS © 2001-2005 The XOOPS Project