I have 2 text files. One with x-coordinates and one with y-coordinates. Both are structured line by line like this:
21.21062
18.03474
14.43482
16.55259
18.66788
12.91812
17.07011
I want to retrieve both coordinates (first line of x + first line of y) then add into a function then move on to next line. Like this:
int line=0
for(int i=0,i < 777,i++0)
get xcord[line] {
String x = xcord
get ycord[line] {
String y = ycord
addPlace(x,y)
line++;
}}
Hope you understand, I am not very good with arrays
EDIT: I know the line numbers of both text files (theyre the same though) if that helps