I am reasonably new to C# programming I took it up in the past week and I am having issues connecting two parts of my program together. Where I stand I have it reading information from a text file and then I need to pass the information into ints for the main part of the program to use and run its functions with. Basically the text file will look something like this
30 3 5
100 7 16
etc.... each set of numbers is in groups of 3s just to clarify if I didn't explain it well enough.
but with each group of numbers I need them set up where I can pass to my ints X Y and Z that are declared after the text file is ran so if needed. The only thought that I have had at the moment is pass them into an array and call the ints (I can do int x = arr[1]; if I coded that right) that way but I have had no luck getting them into the array let alone calling them individually.
I am more then open to hearing other options but could someone please help and explain how it is done in the sections of code I would like to understand what is happening at each step.