Dude, this thread is well over a year old. Next time, if you have a new question, start a new thread.
To save an array to file, just open the file, then loop over the array and write each element in turn:
#include <fstream>
int main()
{
std::ofstream out("somefile");
int array[] = {0,1,2,3,4,5,6,7,8,9};
if (out.is_open()) {
for (int i = 0; i < 10; i++)
out << array[i];
}
}