Forum
Question on file extension - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16)
+---- Thread: Question on file extension (/showthread.php?tid=2596)



Question on file extension - zedex82 - 01-18-2025

I am working my way through the book 'Boriel Basic for Beginners'. It is a very good book and well written. I have convinced my friend to buy a copy too.

On page 166 in the example the first command is '#INCLUDE "ship.gdu.bas". When I exported the UDG's as per the instructions on page 165 it creates a file 'ship.gdu.zxbas'

I was wondering why it did not export with the extension '.bas'. I understand I just need to change the extension in the code and it loads in fine, I just want to understand why. It may be something I have done wrong.

ZeDeX82


RE: Question on file extension - boriel - 01-19-2025

The file extension does not matter. It turns out that ZX Basic Studio (and some other IDEs) use .zxb or .zxbas file extensions by default instead of .bas.
Comment this either in the Telegram Channel or open a New Issue in the ZX Basic Studio project.


RE: Question on file extension - zedex82 - 01-20-2025

boriel Wrote:The file extension does not matter. It turns out that ZX Basic Studio (and some other IDEs) use .zxb or .zxbas file extensions by default instead of .bas.
Comment this either in the Telegram Channel or open a New Issue in the ZX Basic Studio project.

Thankyou.  I thought it would something like this, but I just wanted to check