Hello, I need some help from you guys - thing is:
I've got a text file with numbers, it looks like this:
X, Y, Z.
X and Y are float type, the Y is an integer. The file has many lines.
How do I load that file, seperating X and Y, from Z, into 2 arrays - 1 array for X and Y, second for Z?
Secondly, once I've loaded those, and done some math on the numbers, I'd like to draw coordinate axes, and that data (which is points - x and y). How do I do that?
My attempt to read, load into string and parse into float, failed :/
string text = System.IO.File.ReadAllText("my-path-to-file");
string[] texts = text.Split(',');
float[] in = new float[texts.Length];
for (int i = 0; i < texts.Length; i++)
{
in[i] = float.Parse(texts[i]);