int Goto_next_level( int level ) { char Temp[100]; sprintf(Temp,"Map%i.txt",level ); load_map( (char*)Map_data, Temp, 301 ); } int load_map(char *mapfile,char *location,int Lenght) { FILE *INPUT = fopen(location, "r"); fgets(mapfile, Lenght, INPUT); fclose( INPUT); return 0; }