Introducing ThinBASIC
<< Click to Display Table of Contents >> Navigation: »No topics above this level« Introducing ThinBASIC |
What is thinBasic?
thinBasic is a Basic like language interpreter. Its target is to have a scripts text file to be interpreted and executed immediately by a simple double click or by an automated scheduled tasks. thinBasic can also be used as web server side script language as CGI engine.
You can use thinBasic to run scripts by clicking a script file on the Windows desktop or by typing the name of a script file at the command prompt.
There are two versions of thinBasic:
•a Windows-based version, thinBasic.exe;
•a command-prompt-based version, thinBasicC.exe. This version is also used as CGI script engine in case of server side web engine.
You can run either of these by typing thinBasic.exe or thinBasicC.exe at the command prompt.
What is a Script file?
A script file is a simple text file containing the source code of the program you want thinBasic executes.
Script files can be written with any text editor been able to produce plain text files.
Scripts can be very simple, just few lines of code, or very complex, hundred of lines with many user defined functions and/or included files.
Now some examples to clarify.
What's best than real examples to see thinBasic in action?
Copy a file into Operating System predefined temporary directory |
|
Same as example 1 but with much less code lines |
|
A little more complex example: 2 functions, one recursive |
|
Scan an input file and output results. |
|
Some console output plus command line parsing. |
|
Test if computer is connected to Internet, if yes, it reports the way it is connected and current active IPs. |
Note
Help file still under development. Keywords syntax and specifications can change without notification.