I tried to make a program that would take a txt file and respond to it. Found some tutorial and used the code from there with some modifications.
But when I run it, it just opens the dos with nothing in it.
Here's the code:
//This program should take a text file named VCC.txt and read it, put it to a string
//and then if it matches the given string, it should respond
using namespace std;
//The string that the text file will be read to
//Get line and put it to char textfile
//If textfile is Hello, wich it is, it should respond with saying Hello back, but somehow this doesn't work
if(textfile == "Hello")