VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

FAST Tail Function for VB

pt  (4 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

After hunting for this functionality since I started using VB, I've finally figured out how to *quickly* read the last few lines in a file. This function fills a dynamic array with the last X number of lines in a file you specify. I use it to monitor apachewin32 logs on another server. This is much faster than using 'line input'. I know there may be more optimized ways of doing this, I just thought I should get it out there.

Assumes
Assumes a publicly declared dynamic array.

Rate FAST Tail Function for VB (2(2 Vote))
FAST Tail Function for VB.bas

FAST Tail Function for VB Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters