I'm writing a program and have to verify that the file open command did succeed
and if not the program will write a message to that effect and then terminate
then we have to prompt the user for strings of data until the user wants
to quit. Any suggestions on this would be greatly appreciated.

#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include <stdlib.h>
#include <conio.h>

{ ofstream outPutFile("ATxtFile.dat", ios::app);

char our_String[80];

cout << "We will be adding data to textfile :";

cout << "\n\nENTER a string (press ENTER only to quit): "
<< endl;
cin.getline(our_String, 80, '\n');

outPutFile << our_String
<< endl;


return 0;