Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading file
#10
(02-18-2024, 10:50 AM)bplus Wrote: And _CWD = "Current Working Directory", QB64 has that built in and tracks for you. You can use it to check where you are in your folder system as your program is running.

And also you can use _FileExists(PathedFileName$) to check that the file (at the optional named path) does exist and you can open it without error.
Thanks! This works:

      OPEN "C:\MYSTUF~1\MYFILE~1\QB\GEOGRAFY\PMAP1.PNT" FOR RANDOM AS #1 LEN = LEN(PNTData)

The source file and the executable file are in the folder:
    \GEOGRAFY\GEAMAP\

So want should have been the correct abbreviated form of the statement?

Also, in QB64 do I have to use MYSTUF~1 as in QBASIC and DOS (instead of MYSTUFF)?
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)