Your code works, but you cannot print an entire array at once. You've got to iterate the array somehow and print each item separately or combine them into a single string.
Printing each item separately:
For Each Item As String In quoteArray
Console.WriteLine(Item)
Next
Combining them to a single string using String.Join():
Console.WriteLine(String.Join(Environment.NewLine, quoteArray.ToArray(GetType(String))))
However what I don't understand is why you are writing in VB.NET, but are still using outdated functions and classes from the VB6 era:
ArrayList
FileOpen()
LineInput()
FileClose()
There are much better alternatives these days:
Or you can replace all the above with a regular array and a single call to File.ReadAllLines().
StreamReader solution:
Dim quoteList As New List(Of String)
Using Reader As New StreamReader("C:\path\to\file\textfile.txt")
While Reader.EndOfStream = False
quoteList.Add(Reader.ReadLine())
End While
End Using
File.ReadAllLines() solution:
Dim quoteArray As String() = File.ReadAllLines("C:\path\to\file\textfile.txt")
Printing the list/array using a loop:
For Each Item As String In quoteArray
Console.WriteLine(Item)
Next
Printing the list/array using String.Join():
Console.WriteLine(String.Join(Environment.NewLine, quoteArray))
(if you are using the quoteList solution just replace quoteArray with quoteList in these two examples)
ArrayListis antiquated as are those legacyFilemethods. TryFlie.ReadAllLinesafter you read How to Ask and take the tourFile.ReadAlllines()into the IDE, put the cursor on it, press F1 and Study. As for the suggestion to read How to Ask and take the tour - you havent as yet, so it is a good idea to do so, and I am loathe to post answers for those who havent. Ditto for posts that have been down voted. Have a good day.Filexxxmethods - pay attention to it because it Knows Things.