DeleteFile

Blitz3D Forums/Blitz3D Programming/DeleteFile

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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(