ok in my code it has at a point where the user enter there name,the code then adds ".txt" to the end of it and 'trys' to open the file
now before anyone sais anything,i am a complete and utter newb
ill give you a snipit of the code
i HAVE declared the two strings,one has as its starting operator ".txt",im also using fstream and iostream and am using namespace stdCode:cout<<"\nusername:"; getline(cin,user,'\n'); cin.ignore(); user = user + txt; ifstream userfile ( user ); if ( !userfile.is_open() ){ cout<<"user dosent exist"; cin.get(); cin.ignore(); }
any help for a new guy?