Ok, I couldn't find any other topic aout this problem and I begin to start that is is just such a dump failure from me again. Ok now this code:

Code:
str_cpy(path_str,"%EXE_DIR%\\Savegames\\");
	str_cat(path_str,"savegame.txt");
	filehandle_n = file_open_read(path_str);
	if(filehandle_n != 0)
	{
         do_something();
        }
	else
	{
		printf("Error!");
	}



I just get my Error message. But the folder and file exists!

I'm sure because

Code:
str_cpy(save_dir,"Savegames");
	str_cpy(path_str,"%SAVE_DIR%\\");
	str_cat(path_str,"savegame.txt");
	filehandle_n = file_open_read(path_str);
	if(filehandle_n != 0)
	{
         do_something();
        }
	else
	{
		printf("Error!");
	}


Works, I mean it is a good work-around but I don't want to have to switch the save_di for every file I load.

Version is 7.80

Last edited by Nicotin; 08/17/09 22:43.