I would like to make a GUI to host a Minecraft Server in Windows. Minecraft servers use a .jar file and a .bat file to run the .jar file and read output and give input to/from it.
How to make a C++ program that will open the .jar file, read the output and give input to it?
I tried with execlp
, but when I #include <unistd.h>
I get error that the "source file could not be read" (I think that this is because it is made for POSIX, but I'm not sure).
Any help would be appreciated!
(Also, just so you know, I'm very new to programming and C++)