How to delete file
Posted: Sat Oct 21, 2023 3:48 pm
Hello,
I create a file in #PB_LocalStorage to test a record of a sqlite database. I don't find how to delete this file. The Purebasic command DELETE FILE don't exit in Spiderbasic.
Thank for your help
I create a file in #PB_LocalStorage to test a record of a sqlite database. I don't find how to delete this file. The Purebasic command DELETE FILE don't exit in Spiderbasic.
Code: Select all
*DatabaseBuffer = ExportDatabaseMemory(0)
If CreateFile(0, FichierBase, @CreateFileCallback(), #PB_LocalStorage)
WriteData(0, *DatabaseBuffer, 0, MemorySize(*DatabaseBuffer))
CloseFile(0)
EndIf