|Liberty BASIC Help Online
Creating a tokenized file
Creating a *.tkn file from a *.bas source file, makes a file that:
- starts up much faster (very important for large files)
- can be distributed royalty-free using Liberty BASIC's runtime engine (gold license only)
- can be added to the Liberty BASIC's Run menu as an external program (and run instantly by selecting it from that menu).
How to Tokenize a Source Code File
You can create a *.tkn file from one of the sample programs. Reopen the drawing program used in The Liberty BASIC Editor section of this document.
Now pull down the "Run" menu and select "Make *.TKN File", for instance:
When the file is ready, Liberty BASIC will prompt you to enter a filename in place of the default (draw1.tkn in this case):
Once the file has been saved to disk, you run the .TKN file from within Liberty BASIC. Pull down the "Run" menu and select "Run *.TKN File" as shown:
A file dialog will be displayed containing a list of .TKN files. Select the draw1.tkn file as shown and click on Ok.
Now the .TKN application will run:
Programmers who have registered with the Gold License can also run the TKN file with the Runtime Engine.
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/