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 Writing

Author
Message
Novan
16
Years of Service
User Offline
Joined: 21st Jul 2008
Location:
Posted: 6th Aug 2008 23:09
I am having problems writing to a file. In another function I have no problem writing to a file. Here is the code. Thanks in advance.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Aug 2008 01:21
The file must not exist if you want to open it to write to it.



Novan
16
Years of Service
User Offline
Joined: 21st Jul 2008
Location:
Posted: 7th Aug 2008 04:07
then how would i append to an existing file
Eevil Weevil
17
Years of Service
User Offline
Joined: 1st Aug 2007
Location: Wherever you are, I wil follow
Posted: 7th Aug 2008 11:35
Open it up, copy into an array, delete the file, add into the array the appendix, and then save to file reading from the array.
*Sighs*... logic...

Impossible? Anything is impossible. 48'6F'77'20'64'61'72'65'20'79'6F'75'20'77'6F'72'6B'20'6F'75'74'20'6D'79'20'73'69'67'21

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Aug 2008 15:33
... or use the alternative file plug-in that I've written - it's faster than the DBPro file I/O too, even when switched to 'safe mode'.

Login to post a reply

Server time is: 2024-11-25 18:49:22
Your offset time is: 2024-11-25 18:49:22