I am trying to store some floating points numbers from a file into an array, in order to use them further. By now, I am testing my function to see if it stores something, but all I got in the output is an array with zero's. 
My file has many lines , with 200 numbers writen per line.
My question is how to load all that numbers from file into an array properly. Thank you !

Here is my code:

```
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
using namespace std;
void LoadCoefs(const char* input, float output[], int size );
int main(int argc, const char * argv[])
{
    float* coefs;
    coefs = new float[200];
    LoadCoefs("CoefsFile", coefs, 200);
    for(int i=0; i<200;i++)
    {
        cout<< coefs[i] <<"\n";
    }
    delete [] coefs;
    return 0;
}

void LoadCoefs(const char* input, float output[], int size )
{

    ifstream inp;
    inp.open(input);
    for(int i=0; i<size; i++)
    {
        inp >> output[i] ;

    }
    inp.close();

}

```