my code works but now i need to make it so it use pointers in order to call in the values rather then the array that i have it working with. Another thing I am trying to figure out how to do is create and output.dat file in order to output it rather than just making it output as a regular code. Basically the code is for calculating voltage that comes from data that is pulled in regarding a table of current and resistance. It is supposed to output the full table of voltage, current and resistance.