#include <cstdlib>// Safe guard
#include <iostream>
#include <cmath> // Safe Guard again.
#include <string>
#include <fstream> // Open file i think.
using namespace std; // Using because there will be over 150 lines of code. dont want to continuously type std::
int main(void){
char close;
string filename;
ofstream file;
cout << "File name with .txt: ";
cin >> filename;
//Not going to use other functions ( I think thats the word) to write on screen atm. This is my 'skeleton'
cout << "Press any key then enter to close." << endl; // -.-/> *facepalm*
cin >> close;
return 0; //Quit
}
I am not asking for code, just what to use and help. To bide by the rules please dont provide my WHOLE text editor. would it be file.open(filename); and at end file.close();
Thanks guys. Hope to see some nice answers tomorrow. I have googled C++ DOS Text editor and havent found anything helpfull. please explain code. also im making a TBAG, (T)ext (B)ased (A)dventure (G)ame, =). Please reply (with helpfull code for OT) if you would like to see the source and i will release it, infact dont comment just use the poll
EDIT: Help with the poll

New Topic/Question
Reply



MultiQuote






|