I have a txt file, example:
You get the point- it contains sets of 3 digits followed by line breaks. I need to split the contents line by line and place into an array(2d) for usage further along. I don't know if it's my memory or what, but the pieces ain't fitting. I really cannot stand arrays sometimes. I've gotten the entire file contents to display, but all the loops I've tried have shown the digits 1-by-1 instead of line-by-line... any hints/ideas? Any advice much appreciated, guys.
Here is my current code, I've been playing around for a while now. I've cleaned it up for the sake of posting it:
Dim inputFile As StreamReader Dim allData As String 'with OpenFileDialog1, assign... With OpenFD1 .Filter = "Text files (*.txt) | *.txt" .InitialDirectory = "C:\" .Title = "Select a File to Open..." 'If user clicks Open, then... If .ShowDialog() = Windows.Forms.DialogResult.OK Then inputFile = File.OpenText(.FileName) allData = inputFile.ReadToEnd MessageBox.Show(allData) End If End With