Now that I got to Identify data in TMemoryStream I can see my data correctly.
thanks Paul_McGee
My focus is building many sub files to be stored in a single file and not be bound by the file system text parameters
I have a main file with my TFileStream object and a 2nd identical file that opens a new file automatically and simplifies getting and saving data out of the file to TMemoryStreams and that seems to work well under windows.
I am taking the main file with my TFilestream to copy its data to a 2nd file and installing the modifrcations
I have copyied the updated data back to the main file and then reused and it works good but this is extra deamanding on the hard drive that I pefer not to do.
No matter what I do - swaping files names on the files by first closing my TFilestream’s and renaming the files and then reopening my TFilestreams. And the idea to change handles in my TFilestreams. none of this works.
Its my lack of experience with programiclly handling files and knowing the best way to do this process as I like my TFilestream objects as they are doing the simplication to the saving and loading of file data that I do not prefer to use low level file instructions.
This may sound crazy where I have no idea if anything like this can work but windows has something with pictures or meta files that store data partly in RAM and when over sized automatically uses the hard drive. To use that service can offer speed and many be simplicity to access the data or their many be another tool in windows to use.
Has any one has experience with using files like this