I have the following code where I am trying to open a text file.
char frd[32]="word-list.txt";
FILE *rd=fopen(frd,"rb");
if(!rd)
std::cout<<"Coudn't open file\t"<<frd;
I am using vc 2010 and the file is in the debug directory of this project. Can anyone tell me why it is not able to open the file?