C++ file manipulation

I was wondering if anyone knew how to store a line command as text in a data file, then retrieve that line command as text, and later turn it into a functional line command at some point later in the program?

hybridsealy(at)comcast.net
You mean instead of passing command line arguments, have text file with the contents being
this is the "command line"

Something like that?
do you mean say have the text 'system("pause")' in a text file then retrieve it and run it as if it were part of the original code?

hope that made sence...hehehe...anyway

i dont believe so. it would be stored as if it were regular text and you cant read document text as code. at least thats what i believe.

please coorect me if i am wrong!
I was wondering if anyone knew how to store a line command as text in a data file, then retrieve that line command as text, and later turn it into a functional line command at some point later in the program?

Why would you do such a thing??? Hmmm...I think you're trying to make some kind of a virus that isn't detected by antivirus while its installing then after putting a text file near it-it reads the file and does some harm, right? :)
Topic archived. No new replies allowed.