Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading file
#4
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.
Reply


Messages In This Thread
Reading file - by emfril - 02-13-2024, 01:55 PM
RE: Reading file - by MasterGy - 02-13-2024, 02:22 PM
RE: Reading file - by emfril - 02-18-2024, 04:17 AM
RE: Reading file - by Ikerkaz - 02-13-2024, 02:32 PM
RE: Reading file - by emfril - 02-18-2024, 04:34 AM
RE: Reading file - by SMcNeill - 02-13-2024, 02:58 PM
RE: Reading file - by bplus - 02-13-2024, 03:23 PM
RE: Reading file - by SMcNeill - 02-18-2024, 04:43 AM
RE: Reading file - by bplus - 02-18-2024, 10:50 AM
RE: Reading file - by emfril - 02-18-2024, 06:14 PM



Users browsing this thread: 1 Guest(s)