opening_20a_20file_20in_20a_20specified_20application
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
opening_20a_20file_20in_20a_20specified_20application [2018/03/31 13:19] – external edit 127.0.0.1 | opening_20a_20file_20in_20a_20specified_20application [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
//by J.G.Harston, | //by J.G.Harston, | ||
+ | <code bb4w> | ||
SYS " | SYS " | ||
+ | </ | ||
This loads the file into the application that is associated with the file by reference to its file extension. For instance, a file with a " | This loads the file into the application that is associated with the file by reference to its file extension. For instance, a file with a " | ||
+ | <code bb4w> | ||
SYS " | SYS " | ||
+ | </ | ||
or\\ | or\\ | ||
+ | <code bb4w> | ||
OSCLI " | OSCLI " | ||
+ | </ | ||
There are several problems with this.\\ \\ Firstly, a minor one, you are depending on an application called ' | There are several problems with this.\\ \\ Firstly, a minor one, you are depending on an application called ' | ||
+ | <code bb4w> | ||
INPUT "File: "file$ | INPUT "File: "file$ | ||
root$=FNRegistry_RdStr(& | root$=FNRegistry_RdStr(& | ||
Line 18: | Line 25: | ||
SYS " | SYS " | ||
END | END | ||
+ | </ | ||
Here we read the default application which opens text files (.txt) from the registry and use " | Here we read the default application which opens text files (.txt) from the registry and use " | ||
+ | <code bb4w> | ||
root$=FNRegistry_RdStr(& | root$=FNRegistry_RdStr(& | ||
+ | </ | ||
The above code uses the following code from the [[http:// | The above code uses the following code from the [[http:// | ||
+ | <code bb4w> | ||
DEF FNRegistry_RdInt(hk%, | DEF FNRegistry_RdInt(hk%, | ||
DEF FNRegistry_RdBig(hk%, | DEF FNRegistry_RdBig(hk%, | ||
Line 43: | Line 54: | ||
SYS " | SYS " | ||
=$$B% | =$$B% | ||
+ | </ |
opening_20a_20file_20in_20a_20specified_20application.1522502371.txt.gz · Last modified: 2024/01/05 00:17 (external edit)