Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / file already exists

Author
Message
The Holy Grailo
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location:
Posted: 13th Apr 2003 05:21
I am currently working on a project which calls for outside files. Everything seems to work fine untill i try to write into one of the files and then i get a message "Error at line ? file already exists". If there is any body who knows what i am doing wrong please tell me. I am currently using darkbasic the enhanced version.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 13th Apr 2003 06:15
if file exist() = 1
delete file filename$
open / write
endif

The Holy Grailo
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location:
Posted: 13th Apr 2003 20:51
Thank you

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia

Login to post a reply

Server time is: 2024-11-24 10:37:47
Your offset time is: 2024-11-24 10:37:47