Here this code should help.
You need to do it manually, send the function to do the saving the pointer the the array, and the number of elements in the array.
#include <fstream.h>
void saveArray(float* array, int length);
int main()
{
float floatArray[] = { 15.25, 15.2516, 84.168, 84356};
saveArray(floatArray, 4);
return 0;
}
void saveArray(float* array, int length)
{
ofstream output("output.txt");
for(int i=0;i<length;i++)
{
output<<array[i]<<endl;
}
}
Dknight764