public static int TestStringSplitOptions() { string buff; string[] ssFeedo = new string[6]; int day,month; /* //My input file has only 2 line and Start from next line MyDate.txt 20 07 */ //assume MyhFile is defined correctly somewhere else buff = MyhFile.ReadLine();//buff="MyDate.txt" buff = MyhFile.ReadLine();//buff="20 07" //MessageBox.Show(buff); // the font between quots are english space i mean {' '} in next line ssFeedo = buff.Split(new char[] {' '}, StringSplitOptions.RemoveEmptyEntries);//<--not certain about this day = int.Parse(ssFeedo[0]); month = int.Parse(ssFeedo[1]); }
ssFeedo
String.Split
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)