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



Users browsing this thread: 1 Guest(s)