hiya,
i'd just like to get the pointer if it's possible because i need to load the data somewhere else,
ie,
GetPointerFromFile(...)
{
ifstream fin("data.dat")
fin.seekg(offset, ios::beg);
return fin_pointer; // how?
}
GetData(fin_pointer)
{
fin_pointer.readdata....
};
my problem here is, if i read the data in GetPointerFromFile then i have to allocate a dynamic array of char then return it, but i wouldn't be able to delete it anymore and i also don't like to delete it somewhere else but on that function only,
many thanks,