integers.txt has the following numbers: 1 2 3 4 5 6 7 8 9 10
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
  int numbers[10];
  int i;
  ofstream outf;
  outf.open("integers.txt");
  ifstream inf;
  inf.open("in.txt");
  for(int i = 0; i < numbers[i]; i++);
  {
    outf >> numbers[10];
  }
  inf << numbers[10];
  outf.close();
  inf.close();
  return 0;
}
I want the program to output the integers from integers.txt file to an array and from the array to in.txt file. I get the following error: no match for 'operator>>' in 'outf >> numbers[10]'
 
     
     
    