cpp
#include <fstream>//
int main()
{
using namespace std;
char filename[]="H:\\ICT\\2nd Year\\SoftwareImplementation\\Assignment 3\\assignment3_data.txt";
char texttowrite[255];
char ch='\0';
ifstream fin(filename);
//open the file to readcout
<< "File opened...." << filename << endl << endl;
//display notificationwhile (fin.get(ch))
//read through each character inturn{cout << ch;
//display to screen}
cout << "\nReached end of file...closing file"
<<endl;
fin.close(); //close the file
cout << "\nPress any key to quit..." << endl;
cin.get();
return 0;
}
*edit: Please use code tags in the future, thanks!

i have done this to open a file i need it to now find the min and max number from the file which contains 2 lists of figures
help please!!
This post has been edited by Martyr2: 15 Mar, 2008 - 12:40 PM