Files Question

Hey guys looking for some help.

I have a text file. In this file there is a single function." printf("Hello World"); "

What I want to do is to read the function from the text file and use the function in my program.

Instead of just writing printf("Hello World") in my program I want to be able to call this function from my file. So I read the file and whatever is in the file gets used in my program.

Any ideas would be great. Been trying to figure this out for ages : (
hello,
well you can include that file into your project as seperate *.cpp file, why not??
or convert it into *.dll or static link library.

I dont see a reason why would you need to have function saved in an plain text file lol.
Last edited on
I could do that and that would make sense. But I am looking to do it my way. Thanks anyway : )
Topic archived. No new replies allowed.