im trying to...

Blitz3D Forums/Blitz3D Beginners Area/im trying to...

yeah let me try again without the screwy quotations ^-^ and with a more generic function :)

if newfile=1
   makefile("","temp.dat")
endif
;
;
;
;
function makefile(directory$,filename$)
   if filetype(directory$+filename$)=0         
      filein=writefile(directory$+filename$) 
      closefile(filein)
   else
       deletefile(directory$+filename$)   
       filein=writefile(directory$+filename$) 
       closefile(filein)
    endif
end function