I am trying to list the deliveries in a list box but can't seem to seperate it out.
This is what I have so far:-
System.IO.StreamReader deliveries = new System.IO.StreamReader("C:/..../Deliveries");
while (!deliveries.EndOfStream)
{
Temp = deliveries.ReadLine();
Array[]=Temp.Split(-); // this is where I am trying to seperate out the line
this.listbox.Items.Add(Array);
}
I can't seem to get this to work, I am trying to get the information from a line in the text file to go into the array spliting each section of the txt file where the dashes appear, and then place it into the listbox, I can not get thee the .split(-) to work
Any help? please.:crying:
Edited by katspn, 16 April 2010 - 01:39 AM.


Sign In
Create Account

Back to top









