Proof of concept, proved!
_Title "Read Type test" 'b+ 2022-01-09
Print myType$
("Read Type test.bas")
Function myType$
(file$
) ' for proof of concept assuming one type to get myType$ = b$
Remember to save this to disk before trying.
edit: add close #1
edit: exit function when you got what you came for