VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



When VB OOP meets Unix Doing textfiles with a fine class

by Light Templer (15 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB Script
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

This carefully designed VB CLASS encapsulates the following UNIX shell commands: CAT, HEAD, TAIL, >> (Append) and some more like GetUniqueTempFileName. With properties like FILTER (grep), CancelParsing, IgnoreLinesWith, LinesToHandle and some more handling of text files is easy and fast implemented into your current project. ____ A detailed example for every command is included. Error handling is fully implemented, comments are included and code is fine structured. If you are interested in "things behind": Have a closer look to the ring buffer technik used in TAIL() to save memory. btw: We DON'T load the whole file into memory, so even VERY large files can be handled (e.g. catch the last 50 lines from a 2 GByte logfile without any problems ;) ...) _______ Constructive comments are welcome - votes are motivating ;) ! ______ Regards__Light Templer_______________________________________________UPDATE 1 - Fixed the problem with empty 'IgnoreLinesWith' Update 2 - The check for missing path/filename was against the wrong var.

Rate When VB OOP meets Unix Doing textfiles with a fine class

Download When VB OOP meets Unix Doing textfiles with a fine class

Download When VB OOP meets Unix Doing textfiles with a fine class (19 KB)

When VB OOP meets Unix Doing textfiles with a fine class Comments

No comments have been posted about When VB OOP meets Unix Doing textfiles with a fine class. Why not be the first to post a comment about When VB OOP meets Unix Doing textfiles with a fine class.

Post your comment

Subject:
Message:
0/1000 characters