Hey guys, I am making a program. For that now i am thinking of making a backup. Which is simple that i write all the data from code form in a .dat or .txt file.
Now I want my compiler to read code from that file and run it.
If any other file format can do it, just tell how to do it.
PS: I am not using visual c++, its just normal c++.
Thank you...
No no. I know how to write, read and create a file.
See its like
suppose i have a file named "abc.format"
inside the file i have written
"#include<iostream.h>
void main()
{
cout<<"Hello";
getch();
}"
Now when i read the file, this code inside should be compiled.
stands for "original poster." But no, those people are wrong and stupid. It obviously means "overpowered."
2) "If I remember correctly."
3) What you are referring to, and what @kemort has linked you, is makefile, which I believe is basically using a compiler's executable to run code through a file that has syntactically correct code inside it. I might be wrong on this, due to not having had much exposure to this stuff.
Thanks YFGHNG for the explanation, I've been tied up with other things.
@ay2306
Unfortunately I can't add anything to what I guessed might be relevant. I'd help if I could but I've plumbed the depths of my knowledge on what may be a red herring anyway. Good luck with your quest.