pasting code form a .txt file...
Alright, I want it so that the program opens a .txt file and it can past the text in the program. So I could basicly put functions in the .txt file and the program reads them as actauly functions and does what the .txt files says.
This is what I got so far...
Code:
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
int main()
{
int loop;
loop=1;
char test;
while(loop==1)
{
loop=0;
char player[100];
cout<<"Player: ";
cin>>player;
cout<<"\n";
ifstream openfile("test.txt");
while(!openfile.eof())
{
openfile.get(test);
}
test;
loop=1;
}
}
It's not the best at all right now... or complete... and some varaibles were throwen around that will be used later...
any help please