Run another arduino code


I am making library. Is there a way (or command) that when function is called it will run .ino file saved in directory so i dont must write code to .cpp file.



Code in a .ino file must be compiled and uploaded to an Arduino before it can be run.

Also, a running Arduino program has no access to files on the PC.