im trying to...

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

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.

easy :)
if newfile=1
    if filetype("temp.dat")=0 ;-----if file doesnt exits
       filein=writefile("temp.dat") ;create the file
       closefile(filein)
    else ;--------------------------else
       deletefile("temp.dat") ;-----delete the file
       filein=writefile("temp.dat") ;create the file
       closefile(filein)
    endif
endif