Read All Lines from a Text File into a String Array

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
A reference to the Microsoft Scripting Runtime is required. Refer to code's comments for usage and other details.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: