my pointer points on records after loading file from disk into memory using TMemoryStream . How may I add a new record into memory(not into file !!) so that I could address to this new record through PRec^[N - new added record]. I don't want work with disk, all operations must be only with memory . ReallocMem(NewSize)and then
PRec^[N - new record] := NewRecord; don't work!