Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question about the mask
#1
Huh

I tried passing *.* and *.? and similar as a string by Command$ into my program. But instead of the expected string with these three characters, I got a file listing in the form of a long string. I could also use this if...the individual file names were somehow separated. I did a parsing of the obtained string before posting this question here - everything is separated by plain space (CHR 32). This is completely unuseless for, because then you don't know if what you are reading is the continuation of the file name in which there is a space, or if it is the name of another file...
So - of course, from the start I was counting on direntry.h to give me the filenames, that works great - but - how to get the literal mask string *.* or ?????.* and so on? Having Command$ filter it out for me would only be useful if there were special ASC separators in the filenames it provides, like CHR$ 13 or ther characters (which can't be part of a filename)


Reply


Messages In This Thread
A question about the mask - by Petr - 03-17-2023, 05:13 PM
RE: A question about the mask - by Petr - 03-17-2023, 05:34 PM
RE: A question about the mask - by mnrvovrfc - 03-17-2023, 08:52 PM
RE: A question about the mask - by mnrvovrfc - 03-17-2023, 09:19 PM
RE: A question about the mask - by Petr - 03-18-2023, 08:56 AM
RE: A question about the mask - by mnrvovrfc - 03-18-2023, 10:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  a question about OpenGL in QB64pe: TempodiBasic 11 1,862 11-22-2025, 05:47 PM
Last Post: TempodiBasic
  Question about load pictures Jim_001 4 555 10-22-2025, 06:19 AM
Last Post: Unseen Machine
  Test to post a new Thread + question 32 or 64 bit Rudy M 2 556 09-09-2025, 04:10 PM
Last Post: Rudy M
  Quick Question (I hope) bplus 3 738 02-26-2025, 01:14 AM
Last Post: SMcNeill
  Mix mode input of a binary open file Question! doppler 5 1,506 11-28-2024, 03:06 PM
Last Post: Petr

Forum Jump:


Users browsing this thread: 1 Guest(s)