You are on page 1of 1

#include <iostream>

#include <fstream>
using namespace std;
void main()
{
ofstream file("file.txt");
for (int i=0; i<100; i++)
file<<i;
file.close();
}//ghi
ifstream file("file.txt");
for (int i=0; i<100; i++)
file>>a[i];//doc

You might also like