reading from / writing to file : 2 dumb questions

jbv at souslelogo.com jbv at souslelogo.com
Tue Sep 9 14:18:25 EDT 2014


>>
>   No; it isn't very logical. Ask Kevin Miller or Dr Scott Ranier.
>
> Why is it so? Dunno, and don't really care; after all
> once one has worked out that is the the things are one works with those
> things.
>
> I think you will find this is a cross-platform "problem".
>
> Here's what is written in the dictionary:
>
> "write "one 222" to file tFile -- Writes to the start of the file
>     write "two" to file tFile at 4 -- Writes to the file from character 4
>     write " three" to file tFile at EOF -- Writes to the end of the file
>     write " four" to file tFile at end -- Writes to the end of the file"
>
> which seems quite straightforward.
>

Yes, that's straightforward as long as you stick to a simple
open file / write / close file operation.
Maybe the existence of a pointer, as mentioned by Jacques
should be added to the dictionary...

jbv





More information about the use-livecode mailing list