+ 1

C++ give contents of clicked file to program

Hey, I’m working on an interpreter in C++ but I want files with the .lang extension to open the program with the contents of the file loaded into a variable. If you don’t understand what I’m after, please ask and I’ll try to re world this. I’ve tried looking up how to go about it, but no luck. Basically, when you have say, a python file, and you click it, the program runs. This is what I’m looking for. Thank you for any help.

23rd Nov 2018, 1:10 AM
Mezza
Mezza - avatar
1 Answer
0
So basically you are trying to make a program that runs files?
23rd Nov 2018, 3:13 PM
George Ryan
George Ryan - avatar