My question is the following, I want to save in a file / read from a file, an entire vector with different values in each position. But, if it is a very long vector... instead of doing something like this:
But if we're talking about a really long vector, it can become tedious.
fp = fopen ("Datos.txt","w");
fprintf (fp, "%d %d %d %d %d ", vector, vector, vector, vector, vector);
Maybe there could be done something like:
I know it's wrong, it's to give a general idea. Any help is apreciated.