Hi guys, I m making an small aplication for buses but i got stuck with the string array conversion to a timespan array, i have to convert it i order to compare times later on but i don t know how... Here is the code
string line;
TimeSpan [] array;
OpenFileDialog ofd =new OpenFileDialog();
if (ofd.ShowDialog()==DialogResult.OK)
{
StreamReader str=new Streamreader(File.OpenRead(ofd.FileName));
while (!sr.EndOfStream)
{
line=sr.ReadLine();
string [] array=line.split(';') // time stored inside , format-->hours:minutes, example 08:10
}
If you ve got any other suggestions in order to avoid the timespan class but to be able to work with times later on then please advice.