[Dev-C++] Reading date from one file output to another file.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mitchell, T. (DLM) <Tam...@dl...> - 2002-10-23 19:53:58
|
I need help.
I am not sure where my typo is. Both .txt files exist.
Can anyone please help me.
Thanks
#include<fstream>
#include<iostream>
using namespace std;
void main(){
ifstream fin;
ofstream fout;
fin.open("Eb.txt");
/*if(fin==0){
cout << " input file xx.txt not found "<< endl;
}*/
fout.open("y.txt");
int a[10],i;
for(i=0;i<10;i++)
fin >> a[i];
for(i=0;i<10;i++)
fout << a[i] << endl;
}
Tamra Y. Mitchell
Database & Operating Systems Analyst
412-222-8203 - Work
412-996-9078 - Cell
|