include on the fly?
- Posted by John McAdam <johnmcadam at clix.pt> Aug 11, 2001
- 482 views
Hi there, I want to write a program that can include a file on the fly something like this: s=prompt_string("What is the file to run?") include s This should work in the interpreted mode, but of course not in the compiled mode. The interpreter should just keep on doing its thing with the newly included file. But he returns the error "s not found". The include command apparently only works for literal strings, not varables. I'm probably coming at it from the wrong direction, but it seems to make sense to me. Any suggestions? JOHN