How to read values from a comma separated file?
问题 I want to read words in a text file of a line separated by commas in c sharp. For example, I want to read this line: 9/10/2011 10:05,995.4,998.8,995.4,997.5,118000 and get the values: 9/10/2011 10:05 , 995.4 , 998.8 , 995.4 , 997.5 and 118000 . Next, I also need to change the format of the date to MMddYYYY , and of the time to HHmmss (e.g. 100500 ). I am using this code for reading is there anything wrong private void button1_Click(object sender, EventArgs e) { StreamReader reader1 = File