accessing_20files_20with_20no_20extension
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
accessing_20files_20with_20no_20extension [2018/03/31 13:19] – external edit 127.0.0.1 | accessing_20files_20with_20no_20extension [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
//by Jon Ripley, May 2006//\\ \\ When using **OPENIN**, **OPENUP** and **OPENOUT** to create or access files that do not have a file extension the default action of BBC BASIC is to append a //.bbc// file extension. To create or access files with no file extension you must add a full stop to the file name.\\ \\ To **OPENIN**, **OPENUP** or **OPENOUT** a file called **MyFile** use: | //by Jon Ripley, May 2006//\\ \\ When using **OPENIN**, **OPENUP** and **OPENOUT** to create or access files that do not have a file extension the default action of BBC BASIC is to append a //.bbc// file extension. To create or access files with no file extension you must add a full stop to the file name.\\ \\ To **OPENIN**, **OPENUP** or **OPENOUT** a file called **MyFile** use: | ||
+ | <code bb4w> | ||
hfile% = OPENIN " | hfile% = OPENIN " | ||
hfile% = OPENOUT " | hfile% = OPENOUT " | ||
hfile% = OPENUP " | hfile% = OPENUP " | ||
+ | </ | ||
The same applies when accessing files with no extension using a // | The same applies when accessing files with no extension using a // | ||
+ | <code bb4w> | ||
*DISPLAY MyFile. | *DISPLAY MyFile. | ||
*COPY MyOldFile. MyNewFile. | *COPY MyOldFile. MyNewFile. | ||
+ | </ | ||
The default file extensions appended by the // | The default file extensions appended by the // | ||
accessing_20files_20with_20no_20extension.1522502343.txt.gz · Last modified: 2024/01/05 00:18 (external edit)