Could someone please tell me the correct method of locating a file through ifstream. This it my attempt, which doesn't seem to be working.
Thanks,Code://Opens for reading the file ifstream b_file ( "C:\Program Files\FAH\unitinfo.txt" ); //Reads one string from the file b_file>> str; //Should output 'this' cout<< str <<"\n";
Gareth.