Function that reads contents and assigns them to a vector.
This function reads formatted data from the stream into the vector v. The vector v must be preallocated with the correct length since the function uses the size of v to determine how many numbers to read. The function returns 0 for success and GSL_EFAILED if there was a problem reading from the file. For a vector V, V.fscanf("filename", %.5e) reads from "filename" and stores it in vector V