I wrote the above code and the IDE
1/ does not support the creation of the create instruction
2/ TMemoryStream and TFileStream are still supported in System.Classes - correct
4/ what am I doing wrong
Hi @lexdeanair - my following comment might come across as condescending or rude; if that’s the case please know that’s not my intention, ok? I am trying to be helpful.
It does seem like you’re making a few basic errors in your code which might be avoided with some reading about the fundamentals of the Object Pascal language first.
Can I suggest you get Marco Cantú’s Object Pascal handbook and take a quick read of it first? It covers things like where the end. should or shouldn’t be along with some other things like looking up help for a particular class constructor (I realize the Delphi help is currently suboptimal but we’re working to improve it).