VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated)

by Nick Campbeln (7 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

This is a simple class that allows you to read from standard in (StdIn) and write to standard out (StdOut) and/or standard error (StdErr) via API calls. This allows you to do things like inputting a data file from the command line (i.e. - “C:\vb\YourProgram.exe < datafile.txt”), output data to a calling application (i.e. – “YourProgram.exe > outputfile.txt”) or output an error to the calling application (i.e. – “YourProgram.exe 2> errors.txt”). The class has been tested pretty well, but your mileage may vary =) UPDATE: Fixed a sloppy coding bug (forgot to rename the copy-n-pasted StdErr function, d'oh!). If you find a bug or want to suggest an improvement, please lemme know! Thanks and enjoy!

Rate Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated)

Download Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated)

Download Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated) (2 KB)

Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated) Comments

No comments have been posted about Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated). Why not be the first to post a comment about Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated).

Post your comment

Subject:
Message:
0/1000 characters