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

fpschultze

Frank-Peter Schultze's Scripting Site

WebRing
Login Consultants BlogRing
Previous Site : Random Site : Next Site : List Sites
Powered by WebRingo
Main Menu
Site Search
License
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 (18285 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 2.0.13.1 © 2001-2005 The XOOPS Project