Pirahnaplant
Well-known member
- Joined
- Mar 29, 2009
- Messages
- 75
- Programming Experience
- 3-5
How can I convert a file to an integer array? I have been using this method but I'm hoping there is an easier way:
VB.NET:
Dim StreamRead As New System.IO.StreamReader(FileName)
Dim file() As Integer
Dim loops As Integer = -1
While Not StreamRead.EndOfStream
loops += 1
Redim Preserve file(loops)
file(loops) = StreamRead.Read
End While
Last edited: