Write variable from other function

Suliman evermind at live.ru
Fri Feb 28 10:18:13 PST 2014


> 	bool isConfigExist()
>
> 		{
> 			configpath = exePath() ~ "config.txt";
> 			if (exists(configpath))
> 				{
> 				return true;	
> 				}
> 				
> 			else
> 			return false;
>
> 		}
>
> Now function return only bool and I need to make it's universal
>  to get text also

Probably not very good idea from me, I understand that I was 
wrong thinking!


More information about the Digitalmars-d-learn mailing list