Code:
float[] x = new float[10000];
float[] y = new float[10000];
int c=0;
using (StreamReader sr = new StreamReader("e: \\CuPeak.dat"))
{
while (!sr.EndOfStream)
{
string s = sr.ReadLine();
string[] variables = s.Split(' ');
x[c] = float.Parse(variables[0]);//run time ERROR in this line " format exception was unhandled"
y[c] = float.Parse(variables[1]);
Console.WriteLine(x[0]);
}
Comment