Help with Remove();

closed account (38qG1hU5)
I want to just make a simple file corrupter. but I can't remove the file.




#include <iostream>
#include <stdio.h>
#include <string>


using namespace std;

int main()
{
string Input;
string Passwords = "Startan14";
string Username1 = "Scootitron";
string Username2 = "Scooticus";
string Income = "1";
string Yes = "Yes";
string Hey = "Hey";

cout << "Hello world!" << endl;

if(Input == "Del", "del", "Delete", "delete"){
Passwords = "Corrupt";
Username1 = "Corrupt";
Username2 = "Corrupt";
Income = "Deez Nutz";
Yes = "Corrupt";
Hey = "Corrupt";
remove( "File.txt" );
}

}

The file "File.txt" will be removed from the current path. What is the current path?
closed account (38qG1hU5)
@coder777 I'm not sure honestly just started coding with c++. But File.txt is in the same folder as the the .exe
Topic archived. No new replies allowed.