The code below is supposed to open an existing file to read, but when you enter a nonexisting file it creates that file! Why does this happen and how can I solve this problem.
Code:
ifstream inFile;

inFile.open("u.txt" );
Thanks...