Re: open file tFile for text ?

2014-08-19 Thread Mark Schonewille

Hi Thierry,

I see no mistake here. Where do you see a problem exactly?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/19/2014 05:16, Thierry Douez wrote:

Thanks Mark,

So you agree with me there is a wrong statement
in the dictionary: write to file

Thierry




___
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/listinfo/use-livecode


Re: open file tFile for text ?

2014-08-19 Thread Thierry Douez

 I see no mistake here. Where do you see a problem exactly?


( copy/paste few lines only)
Here:

mouseUp
   local tFile
   put specialFolderPath(desktop)   /test.txt into tFile
   open file tFile for text

   write one 222 to file tFile -- Writes to the start of the file



 Thanks Mark,

 So you agree with me there is a wrong statement
 in the dictionary: write to file


___
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/listinfo/use-livecode


Re: open file tFile for text ?

2014-08-19 Thread Mark Schonewille
Where exactly, Thierry? If you don't tell me exactly where you have 
found this, I won't find it myself.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/19/2014 10:43, Thierry Douez wrote:


I see no mistake here. Where do you see a problem exactly?



( copy/paste few lines only)
Here:

mouseUp
local tFile
put specialFolderPath(desktop)   /test.txt into tFile
open file tFile for text

write one 222 to file tFile -- Writes to the start of the file



___
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/listinfo/use-livecode


Re: open file tFile for text ?

2014-08-19 Thread Thierry Douez
2014-08-19 11:00 GMT+02:00 Mark Schonewille m.schonewi...@economy-x-talk.com:
 Where exactly, Thierry?

Come on, see my 1st post.

Check the code sample in write to file in the Dictionary.

Best,

Thierry


 ( copy/paste few lines only)
 Here:

 mouseUp
 local tFile
 put specialFolderPath(desktop)   /test.txt into tFile
 open file tFile for text

 write one 222 to file tFile -- Writes to the start of the file


 ___
 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/listinfo/use-livecode

___
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/listinfo/use-livecode


Re: open file tFile for text ?

2014-08-19 Thread Mark Schonewille

Thierry,

Apparently, this is new. Older versions of LiveCode don't have this (or 
that part of the text doesn't render). Also, I was looking at the open 
file command at first. So, it really helped that you pointed exactly at 
the right part of the right entry.


Yes, I would say that the example in the dictionary is wrong. It should be

open file tFile for text write

or

open file tFile for binary write

but it is sufficient to use

open file tFile for write

or

open file tFile

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/19/2014 11:15, Thierry Douez wrote:

2014-08-19 11:00 GMT+02:00 Mark Schonewille m.schonewi...@economy-x-talk.com:

Where exactly, Thierry?


Come on, see my 1st post.

Check the code sample in write to file in the Dictionary.

Best,

Thierry



___
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/listinfo/use-livecode


open file tFile for text ?

2014-08-18 Thread Thierry Douez
Hi,

Dictionary - write to file

There is a sample script which generates an error:

So, what does mean:

open file tFile for text  ?

Thierry

___
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/listinfo/use-livecode


Re: open file tFile for text ?

2014-08-18 Thread Mark Schonewille

Hi Thierry,

If you use the binary or text clause, you also need to use one of the 
parameters update, read, write or append, for example


open file myFile for text write
open file myFile for binary append

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/18/2014 20:49, Thierry Douez wrote:

Hi,

Dictionary - write to file

There is a sample script which generates an error:

So, what does mean:

 open file tFile for text  ?

Thierry

___
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/listinfo/use-livecode



___
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/listinfo/use-livecode


Re: open file tFile for text ?

2014-08-18 Thread Thierry Douez
Thanks Mark,

So you agree with me there is a wrong statement
in the dictionary: write to file

Thierry


Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage


 If you use the binary or text clause, you also need to use one of the
 parameters update, read, write or append, for example

 open file myFile for text write
 open file myFile for binary append

 Mark Schonewille


 Dictionary - write to file

 There is a sample script which generates an error:

 So, what does mean:

  open file tFile for text  ?



___
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/listinfo/use-livecode