Hi Bob,
I think that you are forgetting at least two parameters in the
open file command :
open flle ABC for update (existing file you want to READ and then WRITE to)
(I never used this form ...)
open file ABC for append (existing fille you want to "ADD" to)
("just the job !")
I hope that this
Bob,
'for UPDATE’ works as well for your case as long as you write ‘at END'
Jim Lambert
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://list
Oh append ok.
Bob S
> On Jan 19, 2017, at 10:03 , Bob Sneidar wrote:
>
> CraP! Never mind. Open file for UPDATE
>
> I'm such a moron.
>
> Bob S
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe
CraP! Never mind. Open file for UPDATE
I'm such a moron.
Bob S
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/lis
2017-01-19 18:53 GMT+01:00 Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com>:
> Hi all.
>
> Given code snippet:
>
> open file "Forms Generator 8 Crash Log.txt" for write
>
open file "Forms Generator 8 Crash Log.txt" for
append
HTH
Thierry
---
Hmmm...
I inserted
read from file "Forms Generator 8 Crash Log.txt" until EOF
before the writes, then removed "at end" from the write commands. IT STILL
overwrites the entire file!
It looks like the open file command is wiping the file before any writes
happen! Is this normal??
Bob S
>
Hi all.
Given code snippet:
open file "Forms Generator 8 Crash Log.txt" for write
write formatDate(the date, "sql date") && formatTime(the long time, "sql time")
& cr \
to file "Forms Generator 8 Crash Log.txt" at end
write tContexts & cr to file "Forms Generator 8 Crash Log.txt" at end
close f