String Array into a text file
An array is a data structure that contains multiple variables of the same type. Arrays helps us create shorter and simpler code in many situations. Arrays in VB.NET inherit from the Array class in the System namespace.
Dim months(11) As String
An array allows you to refer to these related values by the same name and to use a number, called an index or subscript, to tell them apart. The default number of array elements is set to zero and the reference element is set to null.
The elements of an array can be of any type, including an array type. The following VB.NET source code shows how to write the array content into a text file.