I'm using nextfile to run through a list of files in a folder. Couple of problems.....
Most importantly, it's finding my file, which the program itself has just created, but then when I use 'Filetype' on it, it tells me the file doesn't exist... how can file not exist which Nextfile has just found?
Here's that bit of code.
file$=NextFile$(mydir)
If file$="" Then Exit
If FileType(file$)=1 Then....
But it's reporting a zero so it's not carrying on from there.
Secondly, Nextfile first finds two 'files' named '.' and '..'. Are these supposed to be there? It's a brand new created folder.
Most importantly, it's finding my file, which the program itself has just created, but then when I use 'Filetype' on it, it tells me the file doesn't exist... how can file not exist which Nextfile has just found?
Here's that bit of code.
file$=NextFile$(mydir)
If file$="" Then Exit
If FileType(file$)=1 Then....
But it's reporting a zero so it's not carrying on from there.
Secondly, Nextfile first finds two 'files' named '.' and '..'. Are these supposed to be there? It's a brand new created folder.