Original Post
the following code compiles ok ----------------------------------------------------------------------- const irr::c8* PD_Entity_Loader::Get_Entity_Mesh_Path() { ifstream Entity_Definition_File; Entity_Definition_File.open("Entity_List.txt"); char buffer[512]; Entity_Definition_File.getline(buffer, 512); //get the first line in the buffer Entity_Definition_File.close(); irr::c8* temp; Entity_Definition_File >> temp; return (temp); } ----------------------------------------------------------------------- but then i get following warning. Is if the coding safe to use without losing the value of temp and returning it safely or not? if not can someone help me find a different method of converting ASCII text to a const char and returning it safely. Just so you know irr::c8 is a typedef for char. ----------------------------------------------------------------------- c:\coding\irrlicht\ice\ice_3.0\ice_3\src\demo\gamestates\gs_demofakegame.cpp(52) : warning C4700: local variable 'temp' used without having been initialized -----------------------------------------------------------------------