02-13-2024, 02:58 PM
Another really easy and flexible option is now:
files$ = _OPENFILEDIALOG$("Open File", "", "*.PNT", "Map files", -1)
IF file$ = "" THEN END 'user hit cancel and didn't enter a pnt file.
OPEN file$ FOR RANDOM AS #1
Like this, you can navigate and choose which file you'd like to open and use, rather than just hardcoding the name and path into your program.
files$ = _OPENFILEDIALOG$("Open File", "", "*.PNT", "Map files", -1)
IF file$ = "" THEN END 'user hit cancel and didn't enter a pnt file.
OPEN file$ FOR RANDOM AS #1
Like this, you can navigate and choose which file you'd like to open and use, rather than just hardcoding the name and path into your program.