Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_File$ is not behaving as expected, cannot determine why
#2
It's the use of the KILL statement.  

Code: (Select All)
a$ = _Files$("*.*")

Print 1, a$

t$ = "temp.tmp"
Open t$ For Output As #1
a$ = _Files$
Print 2, a$

Close
a$ = _Files$
Print 3, a$

Kill t$
a$ = _Files$
Print 4, a$


This may be intentional to prevent you from trying to open and access files that could no longer exist any longer.

Best solution would probably be to read all those files into an array first, then process them after.
Reply


Messages In This Thread
RE: _File$ is not behaving as expected, cannot determine why - by SMcNeill - 10-10-2024, 03:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Is there a way to determine screen resolution ? doppler 2 734 08-03-2023, 02:30 PM
Last Post: doppler
  Is this a problem with _RESIZE or expected behavior? hanness 7 1,594 06-01-2023, 04:04 AM
Last Post: mnrvovrfc
  Looking for a reliable way to determine if a drive letter is in use hanness 24 4,837 05-13-2023, 02:02 PM
Last Post: hanness
  Is it possible to determine the screen scaling factor within QB64? hanness 3 849 05-09-2022, 01:37 AM
Last Post: hanness

Forum Jump:


Users browsing this thread: 1 Guest(s)