[Oberon] How to save a viewer's text as a file
Paul Reed
paulreed at paddedcell.com
Wed Jul 13 00:51:20 CEST 2016
> To do so, you can click at the lower edge of the menu bar of System.Log
> and insert the text âEdit.Storeâ in the menu bar.
> Then click on that command and voila: your System.Log is stored as a file
> with name System.Log.
Edit.Mod's command procedure named Store allows two ways of saving text
(the first IF statement).
Either, the text in the viewer (main frame) of the menu frame containing
the command Edit.Store is saved (which Joerg has engineered above by
adding the command to the Log's menu);
or, the text in the marked viewer (marked by the star pointer, set up by
pointing with the mouse and pressing Ctrl-Z) is saved under the name
parameter of the Store command. You can even make it get the name from
the current selection by specifying the name as "^".
So, as an alternative, you can for example just enter the command
"Edit.Store Result1.Log" in the log (or in any other viewer or tool), mark
the viewer whose text you wish to save under that (arbitrary) name, and
execute the command.
HTH
Paul
PS: As an exercise, work out how much stack and heap space is used to do
the above in the Oberon System, compared with how much resource is needed
to save a text document in your mainstream operating system of choice :)
More information about the Oberon
mailing list