Hi all,
No matter what I try, DeleteFile steadfastly refuses to delete a file! I first use FileType and supply Path$+Filename$ (after setting Path$ via CurrentDir$() at the start of the program). Having received a "1" back from FileType, I then pass the same variables to DeleteFile but the file is never deleted:
If FileType(Path$+Filename$)=1 Then
DeleteFile Path$+Filename$
EndIf
The same things happens in Blitz Basic 2D. Can anyone please tell me what I am doing wrong? :o(
No matter what I try, DeleteFile steadfastly refuses to delete a file! I first use FileType and supply Path$+Filename$ (after setting Path$ via CurrentDir$() at the start of the program). Having received a "1" back from FileType, I then pass the same variables to DeleteFile but the file is never deleted:
If FileType(Path$+Filename$)=1 Then
DeleteFile Path$+Filename$
EndIf
The same things happens in Blitz Basic 2D. Can anyone please tell me what I am doing wrong? :o(