No extension and comma

Discussions related specifically to the Windows, Linux (86), Mac OS-X and Raspberry Pi editions of BB4W and BBCSDL
User avatar
hellomike
Posts: 184
Joined: Sat 09 Jun 2018, 09:47
Location: Amsterdam

No extension and comma

Post by hellomike »

Hi,

It seems that BBCSDL can't or has an issue accessing a file which name has no extension and a comma in it.
The following code works in BB4W but signals "File not found" in BBCSDL (on Windows10).

Code: Select all

      F$="C:/PLtitels,fff."
      F%=OPENINF$
      IF F% THEN
        CLOSE#F%
      ELSE
        PRINT "File '" F$ "' not found!"
      ENDIF
      END
I can't find anything about it in the "Differences between BB4W and BBCSDL" page.

Thanks

Mike
User avatar
JeremyNicoll
Posts: 72
Joined: Sun 26 Jul 2020, 22:22
Location: Edinburgh

Re: No extension and comma

Post by JeremyNicoll »

hellomike wrote: Wed 09 Aug 2023, 11:02 Hi,

It seems that BBCSDL can't or has an issue accessing a file which name has no extension and a comma in it.
What happens if you leave out the trailing dot?

Also, is there a difference in treatment if you have dots in folder names, eg

C:\Test\This and.that\Or the . other\some file

(which windows should support ok, but SDL might not).
User avatar
hellomike
Posts: 184
Joined: Sat 09 Jun 2018, 09:47
Location: Amsterdam

Re: No extension and comma

Post by hellomike »

Richard has updated the "Differences between BB4W and BBCSDL" page now.
Hated Moron

Re: No extension and comma

Post by Hated Moron »

hellomike wrote: Sat 12 Aug 2023, 08:56 Richard has updated the "Differences between BB4W and BBCSDL" page now.
The new Windows 'installer' release (which reports as 1.36c) will accept commas in filenames, under the same conditions as spaces are accepted.

Code: Select all

>PRINT OPENIN"test,fff."
         5