Kay C Lan wrote:

> The Dictionary says that if I open a file for 'update', then 'read
> from file' to a specific position that when I 'write to file' it
> will occur at the position I've read to but that's not what I'm
> seeing in 6.6.5GM, 7.1.1 rc4 and 8.0 dp13 - OS X 10.9.5. In the
> msg box:
>
> set the defaultFolder to specialFolderPath("documents")
> put "trash this file.txt" into tFileName
> put "This is a test." into URL ("file:" & specialFolderPath("documents") &
> "/" & tFileName)
> open file tFileName for update
> read from file tFileName for 2 words
> put it into tResult
> write "open/read/write/close" to file tFileName
> close file tFileName
> put URL ("file:" & specialFolderPath("documents") & "/" & tFileName) into msg
> put cr & tResult after msg
>
> I was expecting:
> This is open/read/write/close
>
> What I'm getting:
> This is a test.open/read/write/close

Using v7.1.1 Stable on Ubuntu 14.04 I get:

   This is open/read/write/close
   This is

Looks like a Mac-specific bug. After you file the report please note the bug number here so we can follow its progress. Thanks.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 ____________________________________________________________________
 ambassa...@fourthworld.com                http://www.FourthWorld.com


_______________________________________________
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

Reply via email to