I want to scan elements from a txt into an array. The txt doesn\'t have how many rows or columns I\'m going to have, it only contains a coordinate, and the elements of the array
You should use dynamic array allocation to scan elements from an unknown txt file into an array.
for C++ programmers the best solution is std::vector.
but C programmers should use alternative solutions.
please read this post: (std::vector alternative for C)