I created a method to get a file in the current directory:

Code:
LPSTR CApplication::GetFile(LPSTR File)
{
	char Path[1000];
	GetModuleFileName(m_hInst,Path,1000);
	for(UINT x=(UINT)strlen(Path);x>0;x--)
		if(Path[x]=='\\')
			break;

	Path[x+1]='\0';

	strcat(Path,File);

	LPSTR ReturnPath=Path;

	return ReturnPath;
}
When I request a file the method returns a string, which can be shown by a messagebox, but when I try to write it to a file I get:

Code:
08 11 F4 77 1E (hex)
what am I doing wrong?

thanks in advance,
borre mosch