Im looking at creating an application in VB.NET and im having some issues sorting a file on new line.
Basically on the new line, i wanna capture the data in that line, and store it in an array for later use.
Can anyone help me with this? It’d be greatly appreciated 🙂
Example in PHP:
$data = explode("\n", $a);
If i understand your question correctly, use this to read a file and load line by line into an array.
EDIT: Another method, one that i was not aware of and i find it very interesting is:
This is two lines of code and does the same as my original response.
Very efficient, all you would need to do from here is use the
holdData()Array to read the lines of text to atextbox,label,listboxor w/e you wish to do with it 🙂